Przeglądaj źródła

header.html: Add .Site.RSSLink as default RSS feed. (#38)

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
Stephan Kulla 8 lat temu
rodzic
commit
9c5205097a
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      layouts/partials/header.html

+ 3 - 4
layouts/partials/header.html

@@ -20,10 +20,9 @@
   <link rel="stylesheet" href="{{ $.Site.BaseURL }}css/{{ . }}">
   <link rel="stylesheet" href="{{ $.Site.BaseURL }}css/{{ . }}">
   {{ end }}
   {{ end }}
 
 
-  {{ if .RSSlink }}
-  <link rel="alternate" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}">
-  <link rel="feed" href="{{ .RSSlink }}" type="application/rss+xml" title="{{ .Site.Title }}">
-  {{ end }}
+  <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 }}">
+
   <link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon">
   <link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon">
   <link rel="canonical" href="{{ .Permalink }}">
   <link rel="canonical" href="{{ .Permalink }}">