diff options
author | dashdashzako <d@dashdashzako.net> | 2019-09-02 11:48:19 +0300 |
---|---|---|
committer | dashdashzako <d@dashdashzako.net> | 2019-09-02 12:11:44 +0300 |
commit | c6eb4c02c9158c34cf15dd2b663aa9afe6319322 (patch) | |
tree | 27cc0e2da26752c7e95ddec3181ce418dfc5f468 | |
parent | 305389ce84f40584af90f669fa01c3fce3c94d63 (diff) |
Use output formats to retrieve RSS infosuse-regular-pages
-rw-r--r-- | layouts/partials/footer.html | 6 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6abb4e5..a9c76b8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ <footer class="site-footer"> <span class="owner">©{{ now.Year }} {{ .Site.Params.authorname }}</span> - + {{ partial "analytics.html" . }} - - <!-- {{ .Hugo.BuildDate }} --> + + <!-- {{ hugo.BuildDate }} --> </footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e7c5da8..9e79214 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,14 +1,14 @@ - <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="{{ .Site.Params.authorname }}"> - {{ .Hugo.Generator }} + {{ hugo.Generator }} {{ partial "title" . }} <meta name="description" content="{{ .Description }}"> <link rel="canonical" href="{{ .Permalink }}"> - <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 }}"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Arvo:400,700"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/paperback.css"> |