From c02e1fc91ec4ac11cb1f5c508b1c0fb696fa4e64 Mon Sep 17 00:00:00 2001 From: Facundo Olano Date: Sat, 2 Mar 2024 16:16:40 -0300 Subject: [PATCH] Add page.previous and page.next liquid variables (#22) * sort pages * rename tutorial files to enforce an order * add prev next props to posts * test previous next * prevent nested recursive links between posts * add a next/prev footer * make prev/next work as expected for both pages and posts * remove sort by index * bold current section in nav --- docs/includes/nav.html | 6 +- docs/layouts/post.html | 25 +++++ docs/src/index.html | 2 +- .../{introduction.org => 0-introduction.org} | 5 - .../{installation.org => 1-installation.org} | 7 +- .../{jorge-init.org => 2-jorge-init.org} | 6 - .../{jorge-serve.org => 3-jorge-serve.org} | 5 - .../{jorge-post.org => 4-jorge-post.org} | 5 - .../{jorge-build.org => 5-jorge-build.org} | 1 - docs/src/tutorial/index.html | 2 +- site/site.go | 48 +++++++- site/site_test.go | 106 ++++++++++++++++++ 12 files changed, 180 insertions(+), 38 deletions(-) rename docs/src/tutorial/{introduction.org => 0-introduction.org} (93%) rename docs/src/tutorial/{installation.org => 1-installation.org} (91%) rename docs/src/tutorial/{jorge-init.org => 2-jorge-init.org} (98%) rename docs/src/tutorial/{jorge-serve.org => 3-jorge-serve.org} (96%) rename docs/src/tutorial/{jorge-post.org => 4-jorge-post.org} (98%) rename docs/src/tutorial/{jorge-build.org => 5-jorge-build.org} (99%) diff --git a/docs/includes/nav.html b/docs/includes/nav.html index 360a7c5..ad6ebe4 100644 --- a/docs/includes/nav.html +++ b/docs/includes/nav.html @@ -1,7 +1,9 @@