crappy-reverie : fix hidden post show in categories

This commit is contained in:
minoplhy 2023-04-18 23:29:20 +07:00
parent f5c0702d6c
commit 3177ca8e67
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF

View File

@ -15,9 +15,11 @@ title: Categories
<h3 class="category-head">{{ category_name }}</h3>
<a name="{{ category_name | slugize }}"></a>
{% for post in site.categories[category_name] %}
{% if post.hidden != true %}
<article class="archive-item">
<h4><a href="{{ site.baseurl }}{{ post.url }}">{% if post.title and post.title != "" %}{{post.title}}{% else %}{{post.excerpt |strip_html}}{%endif%}</a></h4>
</article>
{% endif %}
{% endfor %}
</div>
{% endfor %}