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
This is follow-up for #2345 which does not remove hidden posts from posts layout (posts by year).
Diff to fix for _layouts/posts.html:
_layouts/posts.html
@@ -5,7 +5,7 @@ {{ content }} <ul class="taxonomy__index"> - {% assign postsInYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %} + {% assign postsInYear = site.posts | where_exp:"item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %} {% for year in postsInYear %} <li> <a href="#{{ year.name }}"> @@ -15,7 +15,7 @@ {% endfor %} </ul> -{% assign postsByYear = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %} +{% assign postsByYear = site.posts | where_exp:"item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %} {% for year in postsByYear %} <section id="{{ year.name }}" class="taxonomy__section"> <h2 class="archive__subtitle">{{ year.name }}</h2>
The text was updated successfully, but these errors were encountered:
Looks good to me. You can send a PR for this patch so your contribution gets permanently recorded.
One small improvement, though:
-where_exp:"item", "item.hidden != true" +where_exp: "item", "item.hidden != true"
Sorry, something went wrong.
@iBug, thanks! PR is submitted, see above
remove hidden posts from listings
623c179
See mmistakes/minimal-mistakes#2623
Successfully merging a pull request may close this issue.
This is follow-up for #2345 which does not remove hidden posts from posts layout (posts by year).
Diff to fix for
_layouts/posts.html
:The text was updated successfully, but these errors were encountered: