diff --git a/layout/_macro/post-collapse.njk b/layout/_macro/post-collapse.njk index b66d1f294..907482eca 100644 --- a/layout/_macro/post-collapse.njk +++ b/layout/_macro/post-collapse.njk @@ -13,7 +13,6 @@
-
diff --git a/layout/_macro/post.njk b/layout/_macro/post.njk index 720ca511c..dd32126b1 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -15,15 +15,7 @@ {# Gallery support #} - {%- if post.photos and post.photos.length %} -
- {%- for photo in post.photos %} -
- -
- {%- endfor %} -
- {%- endif %} + {{ post_gallery(post.photos) }} {%- if post.header !== false %}
@@ -240,7 +232,26 @@ {{ partial('_partials/post/post-footer.njk', {}, {cache: theme.cache.enable}) }} - {{ post_nav(post) }} + {%- if theme.post_navigation and (post.prev or post.next) %} + {%- set prev = post.prev if theme.post_navigation === 'right' else post.next %} + {%- set next = post.next if theme.post_navigation === 'right' else post.prev %} +
+
+ {%- if prev %} + + {%- endif %} +
+
+ {%- if next %} + + {%- endif %} +
+
+ {%- endif %} {% else %}