{{ define "header" }}
|
{{/* @deprecated 2.21.0 remove in 3.0.0: include page-header.html directly (see #1120) */ -}}
|
{{ partials.Include "func/header/IncludeChecked.html" (collections.Dictionary "name" "page-header.html" "page" .) }}
|
{{ end }}
|
{{ define "main" }}
|
<div class="flex-l mt2 mw8 center">
|
{{/* Calculate a unique class for this page */}}
|
{{- $post_class := "" -}}
|
{{- with .File -}}
|
{{- $post_class = printf "page-%s" .ContentBaseName -}}
|
{{- end -}}
|
|
<article class="{{ $post_class }} center cf pv5 ph3 ph4-ns mw7">
|
<header>
|
<h1 class="f1">
|
{{ .Title }}
|
</h1>
|
</header>
|
<div class="nested-copy-line-height lh-copy f4 nested-links {{ $.Param "text_color" | compare.Default "mid-gray" }}">
|
{{- partials.Include "hook.html" (dict "hook" "content-before" "context" .) -}}
|
{{ .Content }}
|
{{- partials.Include "hook.html" (dict "hook" "content-after" "context" .) -}}
|
</div>
|
</article>
|
</div>
|
{{ end }}
|