18 lines
605 B
HTML
18 lines
605 B
HTML
{{ define "main" -}}
|
|
<main class="main layout__main">
|
|
<article class="single-view{{ with .Section }} single-view--{{ . | urlize }}{{ end }}">
|
|
<header>
|
|
<h1 class="title{{ if $.Param "submitted" | default false }} mb--xxs{{ end }}">{{ .Title }}</h1>
|
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
|
{{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}}
|
|
</header>
|
|
|
|
{{ .Content }}
|
|
|
|
{{ if $.Param "relatedposts" | default false }}{{ partial "related.html" . }}{{ end -}}
|
|
|
|
{{ if ne .Lastmod .Date }}{{ partial "dates.html" . }}{{ end -}}
|
|
</article>
|
|
</main>
|
|
{{ end -}}
|