Website/themes/mainroad/layouts/_default/single.html

26 lines
777 B
HTML
Raw Normal View History

2018-07-11 20:45:17 +02:00
{{ 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" . }}