Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How many characters are allowed in a post? #2601

Closed
XinwenCheng opened this issue Jun 9, 2017 · 8 comments
Closed

How many characters are allowed in a post? #2601

XinwenCheng opened this issue Jun 9, 2017 · 8 comments
Labels
duplicate This issue or pull request already exists

Comments

@XinwenCheng
Copy link

Seems Hexo doesn't support very long post, right?

@NoahDragon
Copy link
Member

There is no limit on this. Could you please provide more details? If it occurs, it seems like a bug.

@XinwenCheng
Copy link
Author

Here, I wrote a post on Jianshu.com months ago, and now I wanna repost on hexo, but I found it can't present all content. I've appended MD file and screenshot, please check, thanks!
screen shot 2017-06-10 at 07 00 49
aaa.md.zip

@XinwenCheng
Copy link
Author

@NoahDragon I've verified on FireFox, QQ Browser and Safari, they all have the same problem.

@tea3
Copy link
Member

tea3 commented Jul 3, 2017

@XinwenCheng

In my environment the problem did not happen.

$ nvm install v8.1.2
$ nvm use v8.1.2
$ npm install -g npm
$ npm install -g hexo-cli
$ hexo init hexo8
$ cd hexo8
$ npm install
$ hexo s

v

If there is the same markdown file or the same directory, there is a possibility of conflict. If conflicts are the cause, themes and markdowns are the cause.

#2624

Also , please check if the same problem occurs with Hexo's default theme.

@XuankangLin
Copy link

XuankangLin commented Aug 14, 2018

I have encountered the same problem on long posts. It did appear under hexo's default theme landscape.

Chrome console says:
[Violation] 'DOMContentLoaded' handler took 402ms
[Violation] Forced reflow while executing JavaScript took 399ms

Would this reflow be the issue? Thanks.

[Update] I find this to be a local error only, the same page when rendering in localhost would have this truncation error. But seems fine after pushed to Github. And it indeed has no such "forced reflow" violation message on Github pages.

@Chorer
Copy link

Chorer commented Mar 17, 2020

Try add this to config.yml :

server:
  compress: true 

@XuankangLin
Copy link

Try add this to config.yml :

server:
  compress: true 

This worked for me, thanks!

@stevenjoezhang
Copy link
Member

There is a discussion about it: hexojs/hexo-server#23
I'm closing this issue. Please join the discussion there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

7 participants