Header: Only output RSS link if it's actually set
If a subpage doesn't have any RSS link, don't output an empty link.
This commit is contained in:
@@ -6,8 +6,10 @@
|
|||||||
{{ partial "meta.html" . }}
|
{{ partial "meta.html" . }}
|
||||||
{{ partial "og.html" . }}
|
{{ partial "og.html" . }}
|
||||||
|
|
||||||
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .Permalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
{{- with .OutputFormats.Get "rss" -}}
|
||||||
<link rel="shortcut icon" href="/favicon.png">
|
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
||||||
|
{{- end }}
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
|
|
||||||
<link href="{{ "webfonts/ptserif/main.css" | absURL }}" rel='stylesheet' type='text/css'>
|
<link href="{{ "webfonts/ptserif/main.css" | absURL }}" rel='stylesheet' type='text/css'>
|
||||||
<link href="{{ "webfonts/source-code-pro/main.css" | absURL }}" rel="stylesheet" type="text/css">
|
<link href="{{ "webfonts/source-code-pro/main.css" | absURL }}" rel="stylesheet" type="text/css">
|
||||||
|
|||||||
Reference in New Issue
Block a user