add extra collection pages

This commit is contained in:
Jonathan Souter
2023-03-03 16:47:51 +10:30
parent 11835b1593
commit 91d0413bfd
6 changed files with 28 additions and 3 deletions

View File

@ -4,4 +4,5 @@ layout: layout/base.njk
eleventyImport.collections: ["blog"] eleventyImport.collections: ["blog"]
--- ---
![](https://64.media.tumblr.com/8609103ac770ec5e2cd5fb497b3e118b/5f2a048817dd5fe3-f8/s400x600/54c8bfccac37457bd00cd5d69aab5ee2f0acfb7c.gifv) {% for post in collections.blog %}
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})

8
src/games.md Normal file
View File

@ -0,0 +1,8 @@
---
title: games
layout: layout/base.njk
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 }})

View File

@ -1,4 +1,4 @@
{ {
"layout": "layout/blog", "layout": "layout/blog",
"tags": "games" "tags": "game"
} }

8
src/lists.md Normal file
View File

@ -0,0 +1,8 @@
---
title: lists
layout: layout/base.njk
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 }})

View File

@ -1,4 +1,4 @@
{ {
"layout": "layout/blog", "layout": "layout/blog",
"tags": "lists" "tags": "list"
} }

8
src/music.md Normal file
View File

@ -0,0 +1,8 @@
---
title: music
layout: layout/base.njk
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 }})