From 62f5d70836fe9a211ebfe9551bf02f67049cf86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 14 Sep 2016 13:46:37 +0200 Subject: Add prev/next links at the bottom of user guide pages --- _build/themes/ninenines/layouts/docs/single.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to '_build/themes/ninenines/layouts') diff --git a/_build/themes/ninenines/layouts/docs/single.html b/_build/themes/ninenines/layouts/docs/single.html index b3eeefcd..4bef64ca 100644 --- a/_build/themes/ninenines/layouts/docs/single.html +++ b/_build/themes/ninenines/layouts/docs/single.html @@ -10,6 +10,27 @@ {{ .Content }} +{{ if .Weight }} + {{ if eq .Params.doctype "guide" }} + {{ $.Scratch.Set "prev" ((where (where (where $.Site.Pages ".Params.project" .Params.project) ".Params.doctype" .Params.doctype) ".Params.version" .Params.version).Prev .) }} + {{ $.Scratch.Set "next" ((where (where (where $.Site.Pages ".Params.project" .Params.project) ".Params.doctype" .Params.doctype) ".Params.version" .Params.version).Next .) }} + + + {{ end }} +{{ end }} + -- cgit v1.2.3