소스 검색

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

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
Stephan Kulla 8 년 전
부모
커밋
9c5205097a
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      layouts/partials/header.html

+ 3 - 4
layouts/partials/header.html

@@ -20,10 +20,9 @@
   <link rel="stylesheet" href="{{ $.Site.BaseURL }}css/{{ . }}">
   {{ 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="canonical" href="{{ .Permalink }}">