diff options
Diffstat (limited to '_build/themes/ninenines/layouts')
-rw-r--r-- | _build/themes/ninenines/layouts/docs/single.html | 21 |
1 files changed, 21 insertions, 0 deletions
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 .) }} + + <nav style="margin:1em 0"> + {{ if ($.Scratch.Get "prev").Weight }} + <a style="float:left" href="{{ ($.Scratch.Get "prev").Permalink }}"> + {{ ($.Scratch.Get "prev").Title }} + </a> + {{ end }} + + {{ if ($.Scratch.Get "next").Weight }} + <a style="float:right" href="{{ ($.Scratch.Get "next").Permalink }}"> + {{ ($.Scratch.Get "next").Title }} + </a> + {{ end }} + </nav> + {{ end }} +{{ end }} + <!-- a.code --> </div> |