Commit 85b926a5 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Add / into subscribe URLs feeds shortcode

Should fix #136
parent f6a5185f
......@@ -2,18 +2,18 @@
{{- if .Site.Sections -}}
<ul class='feeds-list'>
{{- /* the site’s index RSS and ATOM feed URLs */}}
<li><a href='{{ .Site.BaseURL }}index.xml'>{{ i18n "siteRssFeed" }}</a></li>
<li><a href='{{ .Site.BaseURL }}atom.xml'>{{ i18n "siteAtomFeed" }}</a></li>
<li><a href='{{ .Site.BaseURL }}/index.xml'>{{ i18n "siteRssFeed" }}</a></li>
<li><a href='{{ .Site.BaseURL }}/atom.xml'>{{ i18n "siteAtomFeed" }}</a></li>
{{- /* range through the site’s main sections (not pages) */}}
{{- $sections := where .Site.Sections "Type" "in" site.Params.mainSections }}
{{- range $sections -}}
<li>
{{- /* for each section, list its index RSS feed URL */}}
<a href='{{ .RelPermalink }}index.xml'>{{ .Title }} {{ i18n "rssFeed" }}</a>
<a href='{{ .RelPermalink }}/index.xml'>{{ .Title }} {{ i18n "rssFeed" }}</a>
</li>
<li>
{{- /* for each section, list its index ATOM feed URL */}}
<a href='{{ .RelPermalink }}atom.xml'>{{ .Title }} {{ i18n "atomFeed" }}</a>
<a href='{{ .RelPermalink }}/atom.xml'>{{ .Title }} {{ i18n "atomFeed" }}</a>
</li>
{{- end }}
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment