fix links and try adding a "newest" link

This commit is contained in:
2023-03-04 00:19:10 +10:30
committed by GitHub
parent eb1af53249
commit bc28b4abeb
5 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,8 @@
<div class="link_tiles_grid">
<a href="{{ collections.all[0].page.url }}">
<img src="_assets/img/haruko.png"/>
newest!
</a>
<a href="/blog/">
<img src="_assets/img/blog.jpg"/>
blog

View File

@ -5,5 +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 }}](/blog/{{ post.data.page.fileSlug }})
{% endfor %}

View File

@ -5,5 +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 }}](/game/{{ post.data.page.fileSlug }})
{% endfor %}

View File

@ -5,5 +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 }}](/list/{{ post.data.page.fileSlug }})
{% endfor %}

View File

@ -5,5 +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 }}](/music/{{ post.data.page.fileSlug }})
{% endfor %}