diff options
-rw-r--r-- | layouts/_default/baseof.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 38bd8de..3f7ec06 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,7 +2,7 @@ <html lang="{{ .Site.LanguageCode }}"> <head> - {{ .Hugo.Generator }} + {{ hugo.Generator }} <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> @@ -25,8 +25,7 @@ {{ if .IsHome }} {{ partial "site-verification" . }} {{ end }} <!-- add googleAnalytics in config.toml --> {{ template "_internal/google_analytics_async.html" . }} - {{ 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 }} <link rel="canonical" href="{{ .Permalink }}"> {{ if (isset .Params "prev") }} <link rel="prev" href="{{ .Params.prev }}"> {{ end }} {{ if (isset .Params "next") }} |