From 2659de88e6dea366e5b72bb41f9a155c100632ad Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 17 Oct 2022 10:46:57 -0400 Subject: wip: add prev/next links to bottom of docs pages --- site/layouts/_default/docs.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index 2ad46376fd..91ceb11a7b 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -59,6 +59,23 @@ {{ end }} {{ .Content }} + + {{ if or (.Page.Params.Next) (.Page.Params.prev) }} +
+ {{ if .Page.Params.Prev }} + + Previous + {{ .Page.Params.Prev | title }} + + {{ end }} + {{ if .Page.Params.Next }} + + Next + {{ .Page.Params.Next | title }} + + {{ end }} +
+ {{ end }} -- cgit v1.2.3