Unify intentation of Nunjucks if blocks
This commit is contained in:
parent
78da563e28
commit
70d9ba770c
@ -52,8 +52,8 @@
|
|||||||
|
|
||||||
{% if tags and tags.includes("posts") %}
|
{% if tags and tags.includes("posts") %}
|
||||||
<nav class="blog__post--pagination" aria-labelledby="nextprev-title">
|
<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 %}
|
{%- if collections.posts %}
|
||||||
|
<h2 class="visually-hidden" id="nextprev-title">Next and Previous Blog Posts</h2>
|
||||||
{%- set previousPost = collections.posts | getPreviousCollectionItem %}
|
{%- set previousPost = collections.posts | getPreviousCollectionItem %}
|
||||||
{%- set nextPost = collections.posts | getNextCollectionItem %}
|
{%- set nextPost = collections.posts | getNextCollectionItem %}
|
||||||
{%- if nextPost or previousPost %}
|
{%- if nextPost or previousPost %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user