summaryrefslogtreecommitdiffstats
path: root/_build/themes/ninenines/layouts
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
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')
-rw-r--r--_build/themes/ninenines/layouts/articles/single.html4
-rw-r--r--_build/themes/ninenines/layouts/docs/single.html7
-rw-r--r--_build/themes/ninenines/layouts/partials/head.html4
3 files changed, 10 insertions, 5 deletions
diff --git a/_build/themes/ninenines/layouts/articles/single.html b/_build/themes/ninenines/layouts/articles/single.html
index edeb63de..1eeda1e5 100644
--- a/_build/themes/ninenines/layouts/articles/single.html
+++ b/_build/themes/ninenines/layouts/articles/single.html
@@ -23,7 +23,9 @@
<h3>More articles</h3>
<ul id="articles-nav" class="extra_margin">
{{ range (where $.Site.Pages "Type" "articles") }}
- <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+ {{ if ne .RelPermalink "/articles/" }}
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+ {{ end }}
{{ end }}
</ul>
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 }}
diff --git a/_build/themes/ninenines/layouts/partials/head.html b/_build/themes/ninenines/layouts/partials/head.html
index 3714bd72..af4710e3 100644
--- a/_build/themes/ninenines/layouts/partials/head.html
+++ b/_build/themes/ninenines/layouts/partials/head.html
@@ -16,7 +16,7 @@
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/img/ico/apple-touch-icon-72.png">
<link rel="apple-touch-icon-precomposed" href="/img/ico/apple-touch-icon-57.png">
- {{ if .RSSlink }}
- <link rel="alternate" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ if .RSSLink }}
+ <link rel="alternate" href="{{ .RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
</head>