1{{ define "main" }}
2{{ partial "cloud-hero.html" (upper .Section) }}
3<div class="section">
4 <header class="section-header">
5 <div class="section-header__top">
6 <h1 class="label">Albums</h1>
7 <a href="{{ .Permalink }}index.xml" class="section-header__rss tag-list__link" title="RSS Feed">{{- partial "icon" "rss" -}}rss</a>
8 </div>
9 {{ with .Content }}
10 <p class="section-header__desc">{{ . | plainify }}</p>
11 {{ end }}
12 </header>
13
14 {{- $showDrafts := hugo.IsDevelopment -}}
15 {{- $pinned := where .RegularPages "Params.pin" true -}}
16 {{- $rest := where .RegularPages "Params.pin" "!=" true -}}
17 {{- $pages := $pinned | append $rest -}}
18 {{- if gt (len $pages) 0 -}}
19 <ul class="post-list list-none">
20 {{- range $pages -}}
21 {{- if or $showDrafts (not .Draft) -}}
22 {{ partial "photos/card.html" (dict "page" .) }}
23 {{- end -}}
24 {{- end -}}
25 </ul>
26 {{- else -}}
27 <p class="post-empty">No albums yet.</p>
28 {{- end -}}
29</div>
30{{ end }}