From e0686bbe4b797a7499c9f67faacec340a1a5d2d6 Mon Sep 17 00:00:00 2001 From: davegson <3080765+davegson@users.noreply.github.com> Date: Tue, 17 Nov 2020 15:22:16 +0100 Subject: [PATCH] Load the previous and next links dynamically --- _layouts/podcast.html | 22 +++++++++++++--------- _layouts/post.html | 23 ++++++++++++++--------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/_layouts/podcast.html b/_layouts/podcast.html index 34f97a0..c41059a 100644 --- a/_layouts/podcast.html +++ b/_layouts/podcast.html @@ -26,12 +26,16 @@ container_class: "podcast pt-40 lg:pt-40" {{ page.summary }}
-
-
Next podcast
- Hiring a Designer from the Privacy Community -
-
-
Previous podcast
- #002 - Progress Update October -
-
\ No newline at end of file + {% if page.next.url %} +
+
Next Podcast
+ {{page.next.title}} +
+ {% endif %} + {% if page.previous.url %} +
+
Previous Podcast
+ {{page.previous.title}} +
+ {% endif %} + diff --git a/_layouts/post.html b/_layouts/post.html index a0d1be7..cfcb7e7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -52,13 +52,18 @@ layout: page_container {% endif %} +
-
-
Next Post
- Hiring a Designer from the Privacy Community -
-
-
Previous post
- #002 - Progress Update October -
-
\ No newline at end of file + {% if page.next.url %} +
+
Next Post
+ {{page.next.title}} +
+ {% endif %} + {% if page.previous.url %} +
+
Previous Post
+ {{page.previous.title}} +
+ {% endif %} +