tags actually working
I figured out what I was doing wrong. Tag pages generate properly now.
This commit is contained in:
parent
061cf41ae7
commit
445ba1b4dd
1 changed files with 6 additions and 8 deletions
14
src/tags.njk
14
src/tags.njk
|
|
@ -1,13 +1,12 @@
|
||||||
---
|
---
|
||||||
layout: base
|
layout: base
|
||||||
title: Tags
|
title: Tag
|
||||||
pagination:
|
pagination:
|
||||||
data: collections
|
data: collections
|
||||||
size: 3
|
size: 1
|
||||||
|
filter: all
|
||||||
alias: tag
|
alias: tag
|
||||||
filter:
|
permalink: /tags/{{ tag }}/
|
||||||
- all
|
|
||||||
permalink: /tags/{{ tag }}/
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Posts filed under “{{ tag }}”</h2>
|
<h2>Posts filed under “{{ tag }}”</h2>
|
||||||
|
|
@ -16,8 +15,7 @@ pagination:
|
||||||
{% for post in postlist | reverse %}
|
{% for post in postlist | reverse %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
|
<a href="{{ post.url | url }}">{{ post.data.title }}</a>
|
||||||
<time>{{ post.date }}</time>
|
<time>{{ post.date | dateFilter }}</time>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<p>See <a href="{{ '/tags/' | url }}">all tags</a>.</p>
|
|
||||||
Loading…
Reference in a new issue