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

github.com/Tazeg/hugo-blog-jeffprod.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffHome <jeffgazet@gmail.com>2020-05-28 22:18:10 +0300
committerJeffHome <jeffgazet@gmail.com>2020-05-28 22:18:10 +0300
commitbbe726e57038b97df811731330fe2c35f5043964 (patch)
tree357e955dab9eb22e029ced1cd22780072ae9f1a0
parente374fbdfdc63245df88a903425ac8ba956d43b17 (diff)
fix Page.RSSLink deprecatedHEADmaster
-rw-r--r--layouts/partials/header.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 7ef8f11..82da728 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -10,10 +10,9 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" />
<link rel="stylesheet" href="{{ "css/blog.css" | absURL }}" />
- {{ 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 }}
+ {{ with .OutputFormats.Get "rss" -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
</head>
<body>