Unify intentation of Nunjucks if blocks

This commit is contained in:
Helen Chong 2024-10-06 19:23:57 +08:00
parent 6027bdff52
commit a61f8f5e6d
2 changed files with 64 additions and 64 deletions

View File

@ -52,8 +52,8 @@
{% if tags and tags.includes("posts") %}
<nav class="blog__post--pagination" aria-labelledby="nextprev-title">
<h2 class="visually-hidden" id="nextprev-title">Next and Previous Blog Posts</h2>
{%- if collections.posts %}
<h2 class="visually-hidden" id="nextprev-title">Next and Previous Blog Posts</h2>
{%- set previousPost = collections.posts | getPreviousCollectionItem %}
{%- set nextPost = collections.posts | getNextCollectionItem %}
{%- if nextPost or previousPost %}