diff options
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e2c248c..654297b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -13,6 +13,14 @@ {{ .Description | markdownify }} </div> {{- end }} + <div class="inline-links"> + {{- with .Param "archivesSlug" }} + <a href="{{ $.RelPermalink }}{{ . }}/">Archives</a> + {{- end }} + {{ with .OutputFormats.Get "rss" -}} + • <a href="{{ .Permalink }}" target="_blank">RSS</a> + {{ end -}} + </div> </header> {{- end }} @@ -27,7 +35,8 @@ {{- $pages := .Pages }} {{- if .IsHome }} - {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} + {{/* get all regular pages instead of pages in a section */}} + {{- $pages = where site.RegularPages "Section" "in" site.Params.mainSections }} {{- end }} {{- $pages = where $pages "Params.hidden" "!=" true }} |
