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

github.com/uicardiodev/hugo-uilite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick de Ritter <patrickderitter@users.noreply.github.com>2019-05-24 16:24:28 +0300
committerGitHub <noreply@github.com>2019-05-24 16:24:28 +0300
commit6d37508aaca69c282474ff3c7704007531a44407 (patch)
treea24ff2adee388be9c00ae07b69e44e135076664a
parent8e97d84a1c23c75aeb4a7e843aaa37e683ff062d (diff)
Fixed header.html for deprecated .RSSLink
-rw-r--r--layouts/partials/header.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index b105ff9..ff0c6ec 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -31,12 +31,11 @@
<meta name="author" content="{{ $config.author }}">
<meta name="theme-color" content="#000000">
- {{ if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
- <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
- {{ end }}
-
+ {{ range .AlternativeOutputFormats -}}
+ <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}" />
+ {{ end -}}
+
{{ partial "seo_schema.html" . }}
</head>
-<body class="clearfix"> \ No newline at end of file
+<body class="clearfix">