73 lines
2.4 KiB
HTML
73 lines
2.4 KiB
HTML
{{ define "main" }}
|
|
{{ if .Params.groups }}
|
|
{{ with .Site.GetPage (path.Join "groups" .Params.groups) }}
|
|
<span class="group absolute top-1 right-1">
|
|
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
|
{{ if $featured_image }}
|
|
<a href="{{.RelPermalink}}">
|
|
<img src="{{ $featured_image }}" class="grow mw3 mw4-l" alt="{{ .Title }}"/>
|
|
</a>
|
|
{{ else }}
|
|
<a class="hero-pill bg-black" href="{{.RelPermalink}}">
|
|
{{- .Title -}}
|
|
</a>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<article class="pa3 pa4-ns nested-copy-line-height no-text">
|
|
<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 }}
|
|
<label class="br-pill f6 link dim pa3 mb2 dib white bg-dark-gray pointer" for="cover">
|
|
{{ T (print .Section ".cover") }}
|
|
</label>
|
|
<input class="dn" 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 pa3 f4 tc-l center measure-wide lh-copy {{ $.Param "text_color" | default "mid-gray" }}">
|
|
{{- . -}}
|
|
</section>
|
|
{{ end }}
|
|
|
|
<section class="flex flex-column flex-row-ns flex-wrap">
|
|
{{ if .Parent.IsHome }}
|
|
{{ range .Pages }}
|
|
<span class="w-100 w-third-ns">
|
|
{{ .Render "summary-with-image" }}
|
|
</span>
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ range .RegularPagesRecursive }}
|
|
<span class="w-100 w-third-ns with-breadcrumb">
|
|
{{ .Render "summary-with-image" }}
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
</section>
|
|
</article>
|
|
{{ end }}
|