refactor(head.html): Page's .RSSLink is deprecated

This closes #162, closes #187
This commit is contained in:
olOwOlo 2019-09-08 22:17:31 +08:00
parent 5a3e5599d2
commit d53092e8b2
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6

View file

@ -37,9 +37,9 @@
<!-- Permalink & RSSlink -->
<link rel="canonical" href="{{ .Permalink }}" />
{{- if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{- with .OutputFormats.Get "RSS" }}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{- end -}}
<!-- Favicon and Touch icons -->