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

Long post preview problem #57

Closed
3 tasks done
upupming opened this issue Apr 5, 2018 · 1 comment
Closed
3 tasks done

Long post preview problem #57

upupming opened this issue Apr 5, 2018 · 1 comment

Comments

@upupming
Copy link
Contributor

upupming commented Apr 5, 2018

I want to create a new issue

Melody Information

Melody Version: 1.5.1

Platform: Ubuntu 17.10

Browser: Chrome

Expected behavior && Actual behavior

I have a long post here. When I run

$ hexo s

The page is blank(I tested on both chrome and firefox):
screenshot from 2018-04-05 18-24-12

There is no error/warning in the chrome console. After I run hexo g; hexo d, the page is ok on github pages:
screenshot from 2018-04-05 18-29-23

After I made the post shorter, it can be previewed(hexo s) as normal:
screenshot from 2018-04-05 18-36-25

Personal option

I think this is a bug of melody, since I didn't encounter this kind of thing when I use the default landscape theme.
screenshot from 2018-04-05 18-39-13

However, I am new to hexo and frontend, perhaps I leave out some nodejs packages? This is my package.json file:

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.7.0"
  },
  "dependencies": {
    "hexo": "^3.2.0",
    "hexo-algoliasearch": "^0.3.0",
    "hexo-browsersync": "^0.3.0",
    "hexo-deployer-git": "^0.3.1",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.2",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-sitemap": "^1.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-offline": "^0.2.3",
    "hexo-render-pug": "^2.0.0",
    "hexo-renderer-ejs": "^0.3.0",
    "hexo-renderer-jade": "^0.4.1",
    "hexo-renderer-marked": "^0.3.0",
    "hexo-renderer-stylus": "^0.3.3",
    "hexo-server": "^0.2.2",
    "hexo-wordcount": "^3.0.2"
  }
}

@Molunerfinn Thank you for your fast reply, I learnt a lot from you.!:kissing:

Best wishes!

@Molunerfinn
Copy link
Owner

No, it's not the problem of melody. It's the hexo server problem.

Solution:

In your hexo site _config.yml

server:
  compress: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants