27 lines (25 loc) · 905 B
 1{{ define "main" }}
 2{{ partial "cloud-hero.html" (upper .Section) }}
 3<div class="contact shell--narrow">
 4  <header class="contact-header">
 5    <h1 class="label">RSS</h1>
 6    {{ with .Description }}
 7    <p class="contact-header__desc">{{ . }}</p>
 8    {{ end }}
 9  </header>
10
11  {{ $feeds := slice
12    (dict "label" "All" "value" "Every post, photo & page" "url" (printf "%sindex.xml" site.Home.Permalink))
13  }}
14  {{ with site.GetPage "blog" }}
15    {{ $feeds = $feeds | append (dict "label" "Blog" "value" "Blog posts only" "url" (printf "%sindex.xml" .Permalink)) }}
16  {{ end }}
17  {{ with site.GetPage "photos" }}
18    {{ $feeds = $feeds | append (dict "label" "Photos" "value" "Photo albums only" "url" (printf "%sindex.xml" .Permalink)) }}
19  {{ end }}
20
21  <ul class="contact-list rss-feed-list list-none">
22    {{ range $feeds }}
23    {{ partial "contact-item.html" . }}
24    {{ end }}
25  </ul>
26</div>
27{{ end }}