2021-07-09 01:59:28 +02:00
|
|
|
{% assign tag = page.tags[0] %}
|
2023-04-08 21:21:40 +02:00
|
|
|
{% assign posts = site.tags[tag] | where_exp: "post", "post.archived != true" %}
|
2021-07-09 01:59:28 +02:00
|
|
|
{% for post in posts %}
|
2023-08-07 14:04:06 +02:00
|
|
|
{% if post.url != page.url %}
|
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
|
|
|
{% if forloop.last == false %}
|
|
|
|
{% assign prev = forloop.index0 | plus: 1 %}
|
|
|
|
{% endif %}
|
|
|
|
{% if forloop.first == false %}
|
|
|
|
{% assign next = forloop.index0 | minus: 1 %}
|
|
|
|
{% endif %}
|
|
|
|
{% break %}
|
2021-07-09 01:59:28 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
2023-03-01 18:44:44 +01:00
|
|
|
<a class="nav-item nav-link" href="../../#blog-{{ tag | slugify }}">🏠 Back to Main Page</a>
|
2021-07-09 01:59:28 +02:00
|
|
|
{% if prev %}
|
2023-08-07 14:04:06 +02:00
|
|
|
<a class="nav-item nav-link" href="{{ posts[prev].url }}">⏮️ Previous in {{ tag }}</a>
|
2021-07-09 01:59:28 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if next %}
|
2023-08-07 14:04:06 +02:00
|
|
|
<a class="nav-item nav-link" href="{{ posts[next].url }}">⏭️ Next in {{ tag }}</a>
|
2021-12-01 18:12:11 +01:00
|
|
|
{% endif %}
|