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

26 lines
772 B
HTML
Raw Normal View History

2020-02-13 07:09:33 +00:00
{{ define "main" }}
2020-04-15 18:41:03 +00:00
<main class="main list h-feed">
2020-02-13 07:09:33 +00:00
<header class="main-header">
2020-04-20 17:47:36 +00:00
{{ with .Title }}
2020-02-13 07:09:33 +00:00
<h1 class="main-title">{{ . }}</h1>
2020-04-20 17:47:36 +00:00
{{ end }}
{{ if not .Params.nometa }}
2020-04-20 18:12:21 +00:00
{{ with partial "list_meta" . }}
2020-04-20 17:47:36 +00:00
<div class="post-meta">{{ . }}</div>
{{ end }}
{{ end }}
2020-02-13 07:09:33 +00:00
</header>
{{- 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 }}
{{ 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 }}