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

首页不显示文章是哪里设置有问题? #5

Closed
GuoRan18 opened this issue Sep 19, 2019 · 7 comments
Closed

首页不显示文章是哪里设置有问题? #5

GuoRan18 opened this issue Sep 19, 2019 · 7 comments

Comments

@GuoRan18
Copy link

大佬,请问首页不显示文章是哪里设置有问题?

@fatrbaby
Copy link

同样的问题,正在找原因。

@GuoRan18
Copy link
Author

同样的问题,正在找原因。

我之前是用的腾讯云开发者平台试的会出现这个问题,用vps就没这个问题了。

@fatrbaby
Copy link

同样的问题,正在找原因。

我之前是用的腾讯云开发者平台试的会出现这个问题,用vps就没这个问题了。

可能和hugo的版本有关。我本地以前是正确的。

@jiaoshijie
Copy link

好像把这个文件/layouts/partials/post.html第一行的
{{ $pages := where .Pages "Params.hidden" "ne" true }}
改成
{{ $pages := where .Site.RegularPages "Params.hidden" "ne" true }}

首页显示就正常了

@jiangfangzheng
Copy link

hugo 0.57.2更新中提到从0.58开始.Page的行为有变更,具体参见:https://github.com/gohugoio/hugo/releases/tag/v0.57.2

@malinkang
Copy link

这个库怎么不更新了。

msdemt added a commit to msdemt/hugo-theme-zozo that referenced this issue Feb 25, 2020
@varkai
Copy link
Owner

varkai commented Jun 28, 2020

已修正

@varkai varkai closed this as completed Jun 28, 2020
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

6 participants