fixed blog navigation referencing archived posts
All checks were successful
Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2021-07-14 03:54:58 +02:00
parent 5348dd2be9
commit 2e852055d3

View file

@ -1,5 +1,7 @@
{% assign tag = page.tags[0] %} {% assign tag = page.tags[0] %}
{% assign posts = site.tags[tag] %} {% assign notarchived = site.tags[tag] | where: "archived", "false" %}
{% assign nilarchived = site.tags[tag] | where: "archived", nil %}
{% assign posts = notarchived | concat: nilarchived %}
{% for post in posts %} {% for post in posts %}
{% if post.url != page.url %} {% if post.url != page.url %}