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.
2020-02-13 07:09:33 +00:00
|
|
|
{{ 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 }}
|
2020-04-12 08:24:35 +00:00
|
|
|
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
|
2020-02-13 07:09:33 +00:00
|
|
|
</main>
|
2020-02-16 20:56:58 +00:00
|
|
|
{{ partial "pagination" . }}
|
2020-02-13 07:09:33 +00:00
|
|
|
{{ end }}
|