make newest post link actually work

This commit is contained in:
2023-03-04 01:39:16 +10:30
parent aadbdeef40
commit 3167af5837
11 changed files with 18 additions and 20 deletions

View File

@ -1,5 +1,9 @@
---
layout: layout/base.njk
---
{# {% set previousPost = collections.post | getPreviousCollectionItem(page) %}
{% set nextPost = collections.post | getNextCollectionItem(page) %}
{% if previousPost %}Previous Blog Post: <a href="{{ previousPost.url }}">{{ previousPost.data.title }}</a>{% endif %}
{% if nextPost %}Next Blog Post: <a href="{{ nextPost.url }}">{{ nextPost.data.title }}</a>{% endif %} #}
<article class="blog-post">{{ content | safe}}</article>

View File

@ -1,6 +1,6 @@
<div class="link_tiles_grid">
<!-- work out how to do this automatically -->
<a href="/music/three_albums_february_2023/">
<a href="{{ collections.post[0].page.url }}">
<img src="_assets/img/most_recent.jpg"/>
newest!
</a>

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "blog"
"tags": ["blog", "post"]
}

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "climbing"
"tags": ["climbing","post"]
}

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "game"
"tags": ["game","post"]
}

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "keyboards"
"tags": ["keyboards","post"]
}

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "list"
"tags": ["list","post"]
}

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "misc"
"tags": ["misc","post"]
}

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "movies"
"tags": ["movies","post"]
}

View File

@ -1,4 +1,4 @@
{
"layout": "layout/blog",
"tags": "music"
"tags": ["music","post"]
}