diff options
author | Andrei Lukovenko <aluck@cordeo.ru> | 2019-05-27 20:44:04 +0300 |
---|---|---|
committer | Andrei Lukovenko <aluck@cordeo.ru> | 2019-05-27 20:44:04 +0300 |
commit | a187c75f80ce37bf9318627fda6baed3184c974c (patch) | |
tree | 160eb3222836b2fbf1aed588f519810f56d97852 | |
parent | 3fe6cbe1cfe6dbedf459f7ccd4604d3b535e28ab (diff) |
hugo 0.55 compatibility (https://github.com/gohugoio/hugo/releases/tag/v0.55.0)
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5665799..d222be4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}> <head> - {{ .Hugo.Generator }} + {{ hugo.Generator }} <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> @@ -14,7 +14,7 @@ {{ range .Site.Params.customCss -}} <link rel="stylesheet" href="{{ . | absURL }}"> {{- end }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + <link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> </head> <body> |