use tagList with full filter instead of just excluding posts
This commit is contained in:
parent
1148b90e22
commit
d5a16cbd47
@ -4,7 +4,7 @@
|
|||||||
<a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
|
<a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a>
|
||||||
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time>
|
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time>
|
||||||
{% for tag in post.data.tags %}
|
{% for tag in post.data.tags %}
|
||||||
{%- if tag != "posts" -%}
|
{%- if collections.tagList.indexOf(tag) != -1 -%}
|
||||||
{% set tagUrl %}/tags/{{ tag }}/{% endset %}
|
{% set tagUrl %}/tags/{{ tag }}/{% endset %}
|
||||||
<a href="{{ tagUrl | url }}" class="tag">{{ tag }}</a>
|
<a href="{{ tagUrl | url }}" class="tag">{{ tag }}</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user