close out for loops in collection pages

This commit is contained in:
Jonathan Souter
2023-03-03 16:50:09 +10:30
parent 91d0413bfd
commit 0dc31e2460
4 changed files with 8 additions and 4 deletions

View File

@ -5,4 +5,5 @@ eleventyImport.collections: ["blog"]
---
{% for post in collections.blog %}
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
{% endfor %}

View File

@ -5,4 +5,5 @@ eleventyImport.collections: ["games"]
---
{% for post in collections.game %}
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
{% endfor %}

View File

@ -5,4 +5,5 @@ eleventyImport.collections: ["list"]
---
{% for post in collections.list %}
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
{% endfor %}

View File

@ -5,4 +5,5 @@ eleventyImport.collections: ["music"]
---
{% for post in collections.music %}
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
{% endfor %}