We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Posts in the 'posts' directory but with type explicitly set to 'post' are not shown on the home page.
All posts in the posts directory should show up, and any page with page type explicitly set to post should also show up.
posts
post
hugo v0.121.2+extended linux/amd64 BuildDate=unknown
Changing the line in index.html from:
{{- $pages := where .Site.RegularPages "Type" "posts" -}}
into:
{{- $pages := where .Site.RegularPages "Type" "like" `post(.*)` -}}
Makes this work as I expect it to.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug 描述你遇到的错误
Posts in the 'posts' directory but with type explicitly set to 'post' are not shown on the home page.
Expected behavior 期待的行为
All posts in the
posts
directory should show up, and any page with page type explicitly set topost
should also show up.Build Environment 构建环境
hugo v0.121.2+extended linux/amd64 BuildDate=unknown
Additional Information 补充信息
Changing the line in index.html from:
into:
Makes this work as I expect it to.
The text was updated successfully, but these errors were encountered: