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

14 lines
584 B
HTML

{{ define "main" }}
<main class="h-feed">
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ if not .Params.nometa }}{{ partial "list_meta" . }}{{ end }}
{{ with .Content }}{{ . }}{{ 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 }}
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
</main>
{{ partial "pagination" . }}
{{ end }}