diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2348be8..33d7f40 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,7 +2,7 @@ <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> <head> <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title> - {{ .Hugo.Generator }} + {{ hugo.Generator }} <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} @@ -11,9 +11,9 @@ {{ else }} <meta name="description" content="{{ .Site.Params.site_description }}"> {{ end }} - {{ with .RSSLink }} - <link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> - <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" /> + {{ with .OutputFormats.Get "RSS" }} + <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> + <link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" /> {{ end }} <link rel="canonical" href="{{ .Permalink }}"/> <link rel="icon" href="{{ "favicon.ico" | absURL }}"> |