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

is_post() return different #2897

Closed
ccbu opened this issue Dec 9, 2017 · 2 comments
Closed

is_post() return different #2897

ccbu opened this issue Dec 9, 2017 · 2 comments
Labels

Comments

@ccbu
Copy link

ccbu commented Dec 9, 2017

Environment Info

Node version(node -v): v8.9.1
Hexo version(node -v): v3.4.3

For BUG

when "hexo server" to start local server, the function ''<%- is_post() %>" return true,
but when use "hexo g" to generate html, the function ''<%- is_post() %>" return false.

for this, we get different result betwen local and online!

@NoahDragon
Copy link
Member

NoahDragon commented Dec 16, 2017

Similar issue #2503
This is a known issue that hexo s has different behavior than hexo g while rendering a file. Need time to dig into this.

@stale
Copy link

stale bot commented Feb 14, 2018

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

2 participants