fixed blog navigation referencing archived posts
Web/pipeline/head This commit looks good Details

This commit is contained in:
Ell 2021-07-14 03:54:58 +02:00
parent 5348dd2be9
commit 2e852055d3
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
{% 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 %}
{% if post.url != page.url %}