2022-10-26 23:12:29 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
<article class="pa3 pa4-ns nested-copy-line-height">
|
|
|
|
<aside id="actions" class="w-30-l mt4-l fr tc">
|
|
|
|
{{ if eq .Section "assets" }}
|
|
|
|
<button class="br-pill pa3 pointer"><label for="file">{{ T (print .Section ".create") }}</label></button>
|
|
|
|
<input id="file" multiple name="file" type="file"/>
|
|
|
|
{{ else if .Parent.IsHome }}
|
|
|
|
<button id="create" class="br-pill pa3 pointer">{{ T (print .Section ".create") }}</button>
|
|
|
|
{{ else }}
|
|
|
|
<button id="delete" class="br-pill pa3 pointer">{{ T (print .Section ".delete") }}</button>
|
|
|
|
{{ end }}
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
{{ with .Content }}
|
2022-11-07 22:30:43 +01:00
|
|
|
<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" }}">
|
2022-10-26 23:12:29 +02:00
|
|
|
{{- . -}}
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<section class="flex-ns flex-wrap justify-around">
|
|
|
|
{{ if .Params.sections }}
|
|
|
|
{{ 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" . -}}
|
|
|
|
|
2022-11-11 10:04:57 +01:00
|
|
|
{{ if .Parent.IsHome }}
|
2022-10-26 23:12:29 +02:00
|
|
|
{{ range .Resources }}
|
|
|
|
<div class="relative w-100 w-30-l mb4 bg-white">
|
|
|
|
<img src="{{ .RelPermalink }}" title="{{.}}" alt="{{.}}" />
|
|
|
|
{{ . }}
|
2022-11-11 10:04:57 +01:00
|
|
|
<button class="delete_image br-pill pa3 pointer" data-target="{{.RelPermalink}}">
|
|
|
|
{{ T (print $.Section ".delete") }}
|
|
|
|
</button>
|
2022-10-26 23:12:29 +02:00
|
|
|
</div>
|
2022-11-11 10:04:57 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-10-26 23:12:29 +02:00
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|