47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
{{ define "main" }}
|
|
<section class="pa3 pa4-ns nested-copy-line-height
|
|
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
|
|
<aside id="actions" class="w-30-l mt4-l fr tc">
|
|
{{ if .Parent.IsHome }}
|
|
<button id="create"
|
|
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
|
|
{{ T (print .Section ".create") }}
|
|
</button>
|
|
|
|
{{ else if .Parent.Parent.IsHome }}
|
|
<button class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer">
|
|
<label for="cover">{{ T (print .Section ".cover") }}</label>
|
|
</button>
|
|
<input id="cover" name="cover" type="file" data-section="{{ .Section }}"/>
|
|
|
|
<button id="delete"
|
|
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer"
|
|
data-confirm="{{ T (print .Section ".delete") }}?">
|
|
{{ T (print .Section ".delete") }}
|
|
</button>
|
|
|
|
<a href="mailto:?subject=invitation&body={{.Content | plainify}}"
|
|
class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray"
|
|
id="invitation">
|
|
{{ T (print .Section ".send") }}
|
|
</a>
|
|
|
|
<span id="barcode" />
|
|
{{ 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 }}
|
|
|
|
{{ range (.Paginate .RegularPagesRecursive).Pages }}
|
|
{{ .Render "summary-with-image" }}
|
|
{{ end }}
|
|
|
|
{{- template "_internal/pagination.html" . -}}
|
|
</section>
|
|
{{ end }}
|