monkeychef/layouts/_default/single.html

32 lines
642 B
HTML
Raw Normal View History

2023-09-20 04:53:11 +00:00
{{ partial "header.html" . }}
<main id="main">
<header>
{{ if .Params.display_title }}
<h1> {{ .Params.display_title }} </h1>
{{ else }}
<h1>{{ .Title }}</h1>
{{ end }}
{{ if .Params.hide_post_meta }}
{{ else }}
{{ if .Params.author }}
{{ .Author }}
{{ else if .Site.Params.author }}
{{ .Site.Params.author }}
{{ end }}
{{ if .Date }} {{ .Date.Format "2006/01/02" }} {{ end }}
{{ end }}
{{ if .Params.toc }}
{{ .TableOfContents }}
{{ end }}
</header>
<article>
{{ .Content }}
</article>
</main>
{{ partial "footer.html" . }}