close out for loops in collection pages

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

No files matched your search

+2 -1
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 %}
+2 -1
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 %}
+2 -1
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 %}
+2 -1
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 %}