20 lines
628 B
HTML
20 lines
628 B
HTML
{{ define "meta" }}
|
|
{{- partial "single_meta.html" . -}}
|
|
{{ end }}
|
|
|
|
{{ define "main" -}}
|
|
<main class="layout__content" role="main">
|
|
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
|
|
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
|
|
<header>
|
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
|
{{ if .Params.tags }}{{ partial "tags.html" . -}}{{ end }}
|
|
</header>
|
|
<div class="content">
|
|
{{ .Content }}
|
|
|
|
{{- if not .Lastmod.IsZero }}{{ partial "dates.html" . -}}{{ end -}}
|
|
</div>
|
|
</article>
|
|
</main>
|
|
{{ end }}
|