Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2019-04-10 12:16:17 +0300
committerGitHub <noreply@github.com>2019-04-10 12:16:17 +0300
commit26f9dcc1f193479623a92aabeae4d1e67c1164c2 (patch)
treee8deea3f6479cba18f7b0f0bdbac860b14463b71 /layouts
parent3881a30ea5908cd6a4eb5c9ae888348f30e68a5a (diff)
Replace deprecated RSSLink (#146)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head/metadata.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/head/metadata.html b/layouts/partials/head/metadata.html
index 7e8c3a0..ab1aded 100644
--- a/layouts/partials/head/metadata.html
+++ b/layouts/partials/head/metadata.html
@@ -9,6 +9,4 @@
{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}
</title>
<!-- RSS -->
-{{ if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
-{{ end }}
+{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}