diff options
Diffstat (limited to '_build/themes/ninenines')
-rw-r--r-- | _build/themes/ninenines/layouts/articles/single.html | 4 | ||||
-rw-r--r-- | _build/themes/ninenines/layouts/docs/single.html | 7 | ||||
-rw-r--r-- | _build/themes/ninenines/layouts/partials/head.html | 4 |
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> |