diff options
author | Dmitry Kolosov <mitrichius@gmail.com> | 2020-04-29 22:27:53 +0300 |
---|---|---|
committer | Dmitry Kolosov <mitrichius@gmail.com> | 2020-04-29 22:27:53 +0300 |
commit | 127f3a40bafe155d4ecebe9ab3df70a5d59f83bc (patch) | |
tree | a2c052cb3c523c8d9db1b93b248a17853e8166fd /layouts/partials/head.html | |
parent | 9b1c2169e99266653ee9390b718a109cb4739391 (diff) |
Fix rss link. Close #28
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ff493f8..6ecb2fb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,7 +7,9 @@ <title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> <meta name="description" content="{{ .Site.Params.Description }}"> -<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ "rss/" | absURL }}"> +{{ with .OutputFormats.Get "rss" -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} +{{ end -}} <link rel="icon" type="image/x-icon" href="{{ "favicon.ico" | absURL }}"> <link rel="apple-touch-icon-precomposed" href="{{ "favicon.png" | absURL }}"> |