acoeur/themes/acoeur/layouts/_default/pages.html

46 lines
1.4 KiB
HTML

{{ define "main" }}
<article class="pa3 pa4-ns nested-copy-line-height">
<aside id="actions" class="w-30-l mt4-l fr tc">
{{ if .Parent.IsHome }}
<button id="create"
class="br-pill f6 link dim br3 ph3 pv2 mb2 dib white bg-dark-gray pointer">
{{ T (print .Section ".create") }}
</button>
{{ else if .Parent.Parent.IsHome }}
<button id="delete"
class="br-pill f6 link dim br3 ph3 pv2 mb2 dib white bg-dark-gray pointer author-only"
data-confirm="{{ T (print .Section ".delete") }}?">
{{ T (print .Section ".delete") }}
</button>
{{ end }}
</aside>
{{ with .Content }}
<section id="content"
class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
{{- . -}}
</section>
{{ end }}
<section class="flex-ns flex-wrap justify-around">
{{ if .Parent.IsHome }}
{{ range .Sections }}
<div class="relative w-100 w-30-l mb4 bg-white">
{{ .Render "summary-with-image" }}
</div>
{{ end }}
{{ else }}
{{ range (.Paginate .RegularPagesRecursive).Pages }}
<div class="relative w-100 mb4 bg-white">
{{ .Render "summary-with-image" }}
</div>
{{ end }}
{{- template "_internal/pagination.html" . -}}
{{ end }}
</section>
</article>
{{ end }}