31 lines
975 B
HTML
31 lines
975 B
HTML
{{ define "main" }}
|
|
{{ $currentPage := . }}
|
|
|
|
<article class="pa3 pa4-ns nested-copy-line-height no-text
|
|
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
|
|
<aside class="w-third-l fr tc" id="actions">
|
|
{{ 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>
|
|
{{ end }}
|
|
</aside>
|
|
|
|
{{ with .Content }}
|
|
<section id="content"
|
|
class="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 flex-column flex-row-ns flex-wrap">
|
|
{{ range .Pages }}
|
|
<div class="w-100 w-third-ns">
|
|
{{ .Render "summary-with-image" }}
|
|
</div>
|
|
{{ end }}
|
|
</section>
|
|
</article>
|
|
{{ end }}
|