Website/themes/mainroad/layouts/_default/single.html
2018-07-11 20:45:17 +02:00

26 lines
No EOL
777 B
HTML

{{ partial "header.html" . }}
<main class="main content">
<article class="post">
<header class="post__header">
<h1 class="post__title">{{ .Title }}</h1>
{{- if or (not .Date.IsZero) .Params.categories }}<div class="post__meta meta">{{ partial "post_meta.html" . }}</div>{{ end }}
</header>
{{- if .Params.thumbnail }}
<figure class="post__thumbnail">
<img src="{{ .Params.thumbnail | relURL }}" alt="{{ .Title }}">
</figure>
{{- end }}
{{- partial "post_toc.html" . -}}
<div class="post__content clearfix">
{{ .Content }}
</div>
{{ partial "post_tags.html" . }}
</article>
{{ partial "authorbox.html" . }}
{{ partial "post_nav.html" . }}
{{ partial "comments.html" . }}
</main>
{{ partial "sidebar.html" . }}
{{ partial "footer.html" . }}