|
|
@ -1,13 +1,57 @@
|
|
|
|
{{ define "main" }}
|
|
|
|
{{ define "main" }}
|
|
|
|
{{ $page := . }}
|
|
|
|
{{ $page := . }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ $class := slice }}
|
|
|
|
|
|
|
|
{{ $draft := $page.Draft }}
|
|
|
|
|
|
|
|
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
|
|
|
|
|
|
|
|
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
|
|
|
|
|
|
|
|
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $draft }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-draft" "paige-unpublished" }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $expired }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-expired" "paige-unpublished" }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $future }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-future" "paige-unpublished" }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $modified }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-modified" }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if not (or $draft $expired $future) }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-published" }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $page.Kind }}
|
|
|
|
|
|
|
|
{{ if eq . "home" }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-home" }}
|
|
|
|
|
|
|
|
{{ else if eq . "section" }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-list" }}
|
|
|
|
|
|
|
|
{{ else if eq . "page" }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-single" }}
|
|
|
|
|
|
|
|
{{ else if eq . "taxonomy" }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-taxonomy" }}
|
|
|
|
|
|
|
|
{{ else if eq . "term" }}
|
|
|
|
|
|
|
|
{{ $class = $class | append "paige-term" }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ $class = delimit ($class | uniq) " " }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $height := $page.Params.paige.home.image.height | default "20rem" }}
|
|
|
|
{{ $height := $page.Params.paige.home.image.height | default "20rem" }}
|
|
|
|
{{ $stretch := $page.Params.paige.home.image.stretch }}
|
|
|
|
{{ $stretch := $page.Params.paige.home.image.stretch }}
|
|
|
|
{{ $width := $page.Params.paige.home.image.width }}
|
|
|
|
{{ $width := $page.Params.paige.home.image.width }}
|
|
|
|
|
|
|
|
|
|
|
|
<article class="paige-article paige-home">
|
|
|
|
<article {{ with $class }} class="{{ . }}" {{ end }} id="paige-article">
|
|
|
|
<div class="align-items-center d-flex flex-column mb-0">
|
|
|
|
<div class="align-items-center d-flex flex-column mb-0">
|
|
|
|
{{ partial "paige/metadata.html" $page }}
|
|
|
|
{{ partial "paige/metadata.html" $page }}
|
|
|
|
|
|
|
|
{{ partial "paige/alert.html" $page }}
|
|
|
|
|
|
|
|
{{ partial "paige/toc.html" $page }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if or $page.Params.paige.home.image.url $page.Params.paige.home.greeting $page.Params.paige.home.blurb }}
|
|
|
|
{{ if or $page.Params.paige.home.image.url $page.Params.paige.home.greeting $page.Params.paige.home.blurb }}
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -44,13 +88,12 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ partial "paige/toc.html" $page }}
|
|
|
|
|
|
|
|
{{ partial "paige/alert.html" $page }}
|
|
|
|
|
|
|
|
{{ partial "paige/content.html" $page }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if $page.Param "paige.social" }}
|
|
|
|
{{ if $page.Param "paige.social" }}
|
|
|
|
<p class="display-6 text-center">{{ partial "paige/social.html" $page }}</p>
|
|
|
|
<p class="display-6 text-center">{{ partial "paige/social.html" $page }}</p>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ partial "paige/content.html" $page }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
{{ partial "paige/pages.html" $page }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|