From c3d017418c1bc2b5adf9563195b6f69c722b2b00 Mon Sep 17 00:00:00 2001 From: anoopkini Date: Thu, 21 Mar 2024 03:31:25 +0000 Subject: [PATCH] updates --- _includes/post-nav.html | 38 ++++++++++++++++++++++++++++++++++++++ _layouts/post.html | 9 +-------- 2 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 _includes/post-nav.html diff --git a/_includes/post-nav.html b/_includes/post-nav.html new file mode 100644 index 0000000..552545a --- /dev/null +++ b/_includes/post-nav.html @@ -0,0 +1,38 @@ + + + {% if page.previous %} + Previous: {{page.previous.title}} + {% endif %} + {% if page.next %} + Next: {{page.next.title}} + {% endif %} + \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index bd33a4b..a494112 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -30,14 +30,7 @@

{{ page.title | escape }} {{ content }} - - {% if page.previous %} - ↼ Previous: {{page.previous.title}} - {% endif %} - {% if page.next %} - Next: {{page.next.title}} - {% endif %} - + {% include post-nav.html %} {%- if site.disqus.shortname -%} {%- include disqus_comments.html -%}