jlelse
/
Indieroad
Archived
1
Fork 0
This repository has been archived on 2020-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
Indieroad/layouts/photos/list.html

21 lines
603 B
HTML

{{ define "main" }}
<main class="main list">
{{- with .Title }}
<header class="main-header">
<h1 class="main-title">{{ . }}</h1>
</header>
{{- end }}
{{- with .Content }}
<div class="main-content">
{{ . }}
</div>
{{- end }}
{{- $photoSections := (.Site.Param "photoSections" | default (slice "posts")) }}
{{- $paginator := .Paginate ( where ( where .Site.RegularPages "Type" "in" $photoSections ) "Params.images" "!=" nil ) 5 }}
{{- range $paginator.Pages }}
{{- .Render "photosummary" }}
{{- end }}
{{ partial "authorbox.html" . }}
</main>
{{ partial "pagination.html" . }}
{{ end }}