diff options
author | IOhannes m zmölnig <zmoelnig@iem.at> | 2022-05-09 12:25:46 +0300 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2022-05-09 12:26:56 +0300 |
commit | 4f3219b2da563e7423035bd1c3a769484ac008f3 (patch) | |
tree | d9be86ba3ea3a079dc2fc457283997a026115f7a | |
parent | 2344ab6ab7e240d47f6c2176d559df7f6ab3460d (diff) |
replace long deprecated and now removed .RSSLink with "with .OutputFormats.Get"
Closes: https://github.com/jeblister/kube/issues/39
-rw-r--r-- | layouts/_default/baseof.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8f75371..3f7ec06 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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") }} |