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

the compiled result of 'hexo g' is different with 'hexo s'. Help! #2979

Closed
AlbertXiao1994 opened this issue Jan 20, 2018 · 2 comments
Closed

Comments

@AlbertXiao1994
Copy link

Environment Info

Node version(node -v):
v8.9.0

Your site _config.yml(Optional):
https://github.com/AlbertXiao1994/albertxiao1994.github.io/blob/hexo/_config.yml

Your theme _config.yml (Optional):
https://github.com/AlbertXiao1994/albertxiao1994.github.io/blob/hexo/themes/memory/_config.yml

Hexo and Plugin version(npm ls --depth 0):
[email protected] D:\Github\blog
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- UNMET DEPENDENCY hexo-generator-searchdb@^1.0.8
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

npm ERR! missing: hexo-generator-searchdb@^1.0.8, required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]

For BUG

For question

I use swig to write my theme, but I cannot get correct result when I use 'hexo g'. However, I get what I wanna when I use 'hexo s'.
It's obvious there is something bad in compiling and generating 'public' folder, while 'hexo s' works well.
How Can I solve it?

For feature request

@NoahDragon
Copy link
Member

Close as duplicate. This is a known issue.
#2451

@NoahDragon NoahDragon mentioned this issue Jan 30, 2018
53 tasks
@dailyrandomphoto
Copy link
Member

partial header should not be cached.
https://github.com/AlbertXiao1994/albertxiao1994.github.io/blob/hexo/themes/memory/layout/_layout.swig#L25

{{ partial('_partials/header.swig', {}, {cache: theme.cache.enable}) }}

see #3756 (comment)

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

3 participants