diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-02 00:21:40 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-02 00:21:40 +0200 |
| commit | ed7bea6694f23c740b63a9fc779f8c92b8a9720d (patch) | |
| tree | ffb3dc1952d02330b54cc58d08bf77e02fb14026 /layouts/partials/head.html | |
| parent | bc6526e7b332138502daeeaefa1a835d6ab44b8a (diff) | |
| download | gohugo-theme-ed-ed7bea6694f23c740b63a9fc779f8c92b8a9720d.tar.gz | |
Rework rss support
Diffstat (limited to 'layouts/partials/head.html')
| -rw-r--r-- | layouts/partials/head.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f2ef3ba..34a9a08 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,18 +16,20 @@ <meta name="author" content="{{ (partial "author.html" . ) }}"> {{ hugo.Generator }} - {{- /* Misc */}} - {{ template "partials/templates/doublinecore.html" . }} - {{ template "partials/templates/opengraph.html" . }} - {{ partial "styles.html" . -}} {{ partial "scripts.html" . -}} <link rel="apple-touch-icon-precomposed" sizes="180x180" href="{{ "apple-touch-icon-precomposed.png" | relURL }}"> <link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}"> - <!-- RSS --> - {{- with .OutputFormats.Get "rss" }} - {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} - {{- end }} + {{- /* RSS */}} + {{ range .AlternativeOutputFormats -}} + <link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" title="{{ $.Site.Title }}" href="{{ .Permalink | safeURL }}"> + {{ end -}} + + {{- partial "custom-head.html" . -}} + + {{- /* Misc */}} + {{ template "partials/templates/doublinecore.html" . }} + {{ template "partials/templates/opengraph.html" . }} </head> |
