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_home()、is_post() 函数判断不正确 #18

Closed
andus-top opened this issue Aug 28, 2019 · 7 comments

Comments

@andus-top
Copy link

@andus-top andus-top commented Aug 28, 2019

在busuanzi.ejs中,写入如下代码:
is_home:<%- is_home() %>
is_post:<%-` is_post() %>
不管是在主页,还是在文章内容页,结果都为false

@zhwangart

This comment has been minimized.

Copy link
Owner

@zhwangart zhwangart commented Aug 28, 2019

也困扰我很久的问题,但是在其他网友的 hexo 上部署就能正常显示,我也曾在 hexo 上提过 issue hexojs/hexo#3483

@tootal

This comment has been minimized.

Copy link

@tootal tootal commented Aug 28, 2019

同样遇到这个问题。

@andus-top

This comment has been minimized.

Copy link
Author

@andus-top andus-top commented Aug 29, 2019

也困扰我很久的问题,但是在其他网友的 hexo 上部署就能正常显示,我也曾在 hexo 上提过 issue hexojs/hexo#3483

博主之前用hexo 3.8.0 解决过这个问题吗

@zhwangart

This comment has been minimized.

Copy link
Owner

@zhwangart zhwangart commented Aug 29, 2019

博主之前用hexo 3.8.0 解决过这个问题吗

现在就是 3.8.0 并不曾解决~

@andus-top

This comment has been minimized.

Copy link
Author

@andus-top andus-top commented Aug 29, 2019

博主之前用hexo 3.8.0 解决过这个问题吗

现在就是 3.8.0 并不曾解决~

好吧,我用的hexo3.9.0。那我暂时就全部显示了。看起来也不是很伤大雅,哈哈哈

@stevenjoezhang

This comment has been minimized.

Copy link

@stevenjoezhang stevenjoezhang commented Sep 30, 2019

建议将partial中的cache设置为false

@andus-top

This comment has been minimized.

Copy link
Author

@andus-top andus-top commented Sep 30, 2019

建议将partial中的cache设置为false

优秀,按照你的方式,果然可以,赞

@andus-top andus-top closed this Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.