summaryrefslogtreecommitdiffstats
path: root/_build/themes/ninenines/layouts/partials/head.html
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-01-16 16:49:08 +0100
committerLoïc Hoguin <[email protected]>2023-01-16 16:49:08 +0100
commitd73aae065ac85cd7de71b815c1c8f28df6391828 (patch)
tree92b7240ff230f87cea5db9ab70a8e727875012a4 /_build/themes/ninenines/layouts/partials/head.html
parent992831c7a516b5183c2af06260829d41aa45267c (diff)
downloadninenines.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/ninenines/layouts/partials/head.html')
-rw-r--r--_build/themes/ninenines/layouts/partials/head.html6
1 files changed, 3 insertions, 3 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>