crappy-reverie : fix hidden post show in categories
This commit is contained in:
parent
f5c0702d6c
commit
3177ca8e67
@ -15,9 +15,11 @@ title: Categories
|
|||||||
<h3 class="category-head">{{ category_name }}</h3>
|
<h3 class="category-head">{{ category_name }}</h3>
|
||||||
<a name="{{ category_name | slugize }}"></a>
|
<a name="{{ category_name | slugize }}"></a>
|
||||||
{% for post in site.categories[category_name] %}
|
{% for post in site.categories[category_name] %}
|
||||||
|
{% if post.hidden != true %}
|
||||||
<article class="archive-item">
|
<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>
|
<h4><a href="{{ site.baseurl }}{{ post.url }}">{% if post.title and post.title != "" %}{{post.title}}{% else %}{{post.excerpt |strip_html}}{%endif%}</a></h4>
|
||||||
</article>
|
</article>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user