diff options
author | Loïc Hoguin <[email protected]> | 2023-01-16 16:49:08 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2023-01-16 16:49:08 +0100 |
commit | d73aae065ac85cd7de71b815c1c8f28df6391828 (patch) | |
tree | 92b7240ff230f87cea5db9ab70a8e727875012a4 /_build/themes | |
parent | 992831c7a516b5183c2af06260829d41aa45267c (diff) | |
download | ninenines.eu-d73aae065ac85cd7de71b815c1c8f28df6391828.tar.gz ninenines.eu-d73aae065ac85cd7de71b815c1c8f28df6391828.tar.bz2 ninenines.eu-d73aae065ac85cd7de71b815c1c8f28df6391828.zip |
Cowlib 2.12
Also future-proof some templates. Unfortunately still have
to use a very old Hugo version to build as there's bugs
preventing proper asciidoc use otherwise (.asciidoc files
do not get rendered properly).
Diffstat (limited to '_build/themes')
-rw-r--r-- | _build/themes/ninenines/layouts/partials/head.html | 6 | ||||
-rw-r--r-- | _build/themes/ninenines/layouts/partials/header.html | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/_build/themes/ninenines/layouts/partials/head.html b/_build/themes/ninenines/layouts/partials/head.html index b3410726..b12f87a9 100644 --- a/_build/themes/ninenines/layouts/partials/head.html +++ b/_build/themes/ninenines/layouts/partials/head.html @@ -14,7 +14,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 }}" /> - {{ end }} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} </head> diff --git a/_build/themes/ninenines/layouts/partials/header.html b/_build/themes/ninenines/layouts/partials/header.html index cff35bcc..314af2e9 100644 --- a/_build/themes/ninenines/layouts/partials/header.html +++ b/_build/themes/ninenines/layouts/partials/header.html @@ -15,7 +15,7 @@ <div id="side-header"> <nav> <ul> - <li{{ if or (eq .URL "/articles/") (eq .Section "articles") }} class="active"{{ end }}><a title="Hear my thoughts" href="/articles">Articles</a></li> + <li{{ if or (eq .Page.RelPermalink "/articles/") (eq .Section "articles") }} class="active"{{ end }}><a title="Hear my thoughts" href="/articles">Articles</a></li> <li{{ if .IsPage }}{{ if eq .Type "talks" }} class="active"{{ end }}{{ end }}><a title="Watch my talks" href="/talks">Talks</a></li> <li{{ if .IsPage }}{{ if or (eq .Type "docs-index") (eq .Section "docs") }} class="active"{{ end }}{{ end }}><a title="Read the docs" href="/docs">Documentation</a></li> <li{{ if .IsPage }}{{ if eq .Type "services" }} class="active"{{ end }}{{ end }}><a title="Request my services" href="/services">Consulting & Training</a></li> |