binario/layouts/_default/single.html
2018-05-22 16:36:26 +03:00

22 lines
No EOL
778 B
HTML

{{ partial "header.html" . }}
<div class="main">
<div class="single block">
<article class="post">
{{- partial "post_thumbnail.html" (dict "page" . ) }}
<div class="post__meta meta mb">{{ partial "post_meta.html" . }}</div>
<h1 class="post__title">{{ .Title }}</h1>
{{ if eq .Params.toc true }}
<details class="post__toc toc" {{ if .Params.tocOpen }}open{{ end }}>
<summary class="toc__title">{{- T "post_toc" -}}</summary>
{{ .TableOfContents }}
</details>
{{ end }}
<div class="post__content">{{ .Content }}</div>
<footer class="post__footer">
{{ if .Params.tags }}{{ partial "post_tags.html" . }}{{ end }}
</footer>
</article>
</div>
{{ partial "comments.html" . }}
</div>
{{ partial "footer.html" . }}