diff options
author | Shiva Huang <shiva.tw@gmail.com> | 2019-04-21 09:46:30 +0300 |
---|---|---|
committer | Carson Ip <carsonip@users.noreply.github.com> | 2019-04-21 09:46:30 +0300 |
commit | 8f366a6e455aa92c2bd084183bc06cad9719bf88 (patch) | |
tree | 3267831d40c75b97e46f98de8544490bbf538f57 | |
parent | cb81cd0ae915ccae316322b6d779adf1c91d3dbc (diff) |
Update functions deprecated in Hugo 0.55 (#28)
Following functions are deprecated in Hugo 0.55:
* Page's .RSSLink
* Page's .Hugo
-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 7d4c2cf..51aa5f4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,7 +6,7 @@ {{ partial "meta.html" . }} {{ partial "og.html" . }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> + <link href="{{ with .OutputFormats.Get "RSS" }}{{ .Permalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> <link rel="shortcut icon" href="/favicon.png"> <link href="{{ "webfonts/ptserif/main.css" | absURL }}" rel='stylesheet' type='text/css'> @@ -14,5 +14,5 @@ <link rel="stylesheet" href="{{ "css/style.css" | absURL }}"> - {{ .Hugo.Generator }} + {{ hugo.Generator }} </head> |