Add RSS links to home page and list template

master
Kevin C. Coram 2019-12-07 22:00:36 -05:00
parent d7f52b0d64
commit ab951ced60
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,10 @@
{{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "content-header" }}
<h1 class="p-name">{{ .Title }}</h1>
<h1>
<span class="p-name">{{ .Title }}</span>
<a rel="alternate" type="application/rss+xml" href="index.xml"><i class="fa fa-rss"></i></a>
</h1>
{{ end }}
{{ define "content" }}
{{ if .Content }}

View File

@ -5,7 +5,10 @@
</article>
<section class="h-feed">
{{ if .Site.Params.homepageSectionTitle }}
<h2 class="p-name u-url"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.homepageSectionTitle }}</a></h2>
<h2>
<a class="u-url" href="{{ .Site.BaseURL }}"><span class="p-name">{{ .Site.Params.homepageSectionTitle }}</span></a>
<a rel="alternate" type="application/rss+xml" href="index.xml"><i class="fa fa-rss"></i></a>
</h2>
{{ end }}
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}