33 lines
995 B
HTML
33 lines
995 B
HTML
{{ define "main" }}
|
|
<section class="pa3 pa4-ns nested-copy-line-height
|
|
{{ if (le (.RelPermalink | strings.Count "/") 3) }}with-breadcrumb{{ end }}">
|
|
{{ 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 .Pages }}
|
|
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
|
<article class="bb b--black-10 w-100 mb4 bg-white pa3-ns flex flex-column flex-row-ns relative">
|
|
{{ if $featured_image }}
|
|
<img src="{{ $featured_image }}" class="img" alt="image from {{ .Title }}">
|
|
|
|
{{ else }}
|
|
<a class="hero-pill fl w-10-ns bg-black"
|
|
href="{{.RelPermalink}}"></a>
|
|
{{ end }}
|
|
|
|
<h1 class="f3 fw1 athelas lh-title mh3">
|
|
{{ .Title }}
|
|
</h1>
|
|
|
|
{{ range (.Paginate .RegularPagesRecursive).Pages }}
|
|
{{ .Title }}
|
|
{{ end }}
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|