Browse Source

Refactor usage of RSSLink

master
digitalcraftsman 9 years ago
parent
commit
30992d828e
  1. 4
      layouts/partials/head.html
  2. 2
      layouts/partials/nav.html

4
layouts/partials/head.html

@ -11,5 +11,7 @@
<link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico"> <link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.css"> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.css">
<link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ if .Site.Params.enableRSS }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
</head> </head>

2
layouts/partials/nav.html

@ -9,6 +9,6 @@
{{ end }} {{ end }}
{{ if .Site.Params.enableRSS }} {{ if .Site.Params.enableRSS }}
<a class="cta" href="{{ .Site.BaseURL }}index.xml">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a>
<a class="cta" href="{{ .Site.RSSLink }}">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a>
{{ end }} {{ end }}
</nav> </nav>
Loading…
Cancel
Save