Browse Source

header: Do not generate RSS links if RSS disabled (Fix #318)

Ronny Chevalier 7 years ago
parent
commit
bf483fcd48
1 changed files with 2 additions and 0 deletions
  1. 2 0
      layouts/partials/header.html

+ 2 - 0
layouts/partials/header.html

@@ -64,8 +64,10 @@
     {{ end }}
   {{ end }}
 
+  {{ if or .Site.RSSLink .RSSLink }}
   <link rel="alternate" href="{{ .RSSLink | default .Site.RSSLink  }}" type="application/rss+xml" title="{{ .Site.Title }}">
   <link rel="feed" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
+  {{ end }}
 
   <link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
   <link rel="apple-touch-icon" type="image/png" href="{{ "/img/apple-touch-icon.png" | relURL }}">