dennogumi/layouts/page/single.html
2021-01-03 02:18:48 +01:00

22 lines
664 B
HTML

{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }}
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
<div class="flex-l mt2 mw8 center">
<article class="center cf pv5 ph3 ph4-ns mw-100">
<header>
{{ if not $featured_image }}
<h1 class="f1">
{{ .Title }}
</h1>
{{ else }}
<p class="f6 b helvetica tracked">
{{ humanize .Section | upper }}
</p>
{{ end }}
</header>
<div class="nested-copy-line-height lh-copy f4 nested-links nested-img mid-gray">
{{ .Content }}
</div>
</article>
</div>
{{ end }}