summaryrefslogtreecommitdiffstats
path: root/_build/themes/ninenines/layouts/docs
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-10-03 13:39:41 +0200
committerLoïc Hoguin <[email protected]>2017-10-03 13:39:41 +0200
commitb5d4cb91f80c833795a2d87050c3674bb7aecdc5 (patch)
tree62bf0ad8326006fcd3407fcb7c34c844c0dc0874 /_build/themes/ninenines/layouts/docs
parent1f8d51dd2692fc3978080419987bbe4d49a41a90 (diff)
downloadninenines.eu-b5d4cb91f80c833795a2d87050c3674bb7aecdc5.tar.gz
ninenines.eu-b5d4cb91f80c833795a2d87050c3674bb7aecdc5.tar.bz2
ninenines.eu-b5d4cb91f80c833795a2d87050c3674bb7aecdc5.zip
Update Hugo, docs
Diffstat (limited to '_build/themes/ninenines/layouts/docs')
-rw-r--r--_build/themes/ninenines/layouts/docs/single.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/_build/themes/ninenines/layouts/docs/single.html b/_build/themes/ninenines/layouts/docs/single.html
index 4bef64ca..9071d611 100644
--- a/_build/themes/ninenines/layouts/docs/single.html
+++ b/_build/themes/ninenines/layouts/docs/single.html
@@ -12,8 +12,11 @@
{{ 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 .) }}
+ {{ $pages := where $.Site.Pages ".Params.project" .Params.project }}
+ {{ $pages := $pages | intersect (where $.Site.Pages ".Params.doctype" .Params.doctype) }}
+ {{ $pages := $pages | intersect (where $.Site.Pages ".Params.version" .Params.version) }}
+ {{ $.Scratch.Set "prev" ($pages.Prev .Page) }}
+ {{ $.Scratch.Set "next" ($pages.Next .Page) }}
<nav style="margin:1em 0">
{{ if ($.Scratch.Get "prev").Weight }}