binario/layouts/_default/single.html
2018-05-25 10:20:37 +03:00

24 lines
No EOL
788 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>
{{ if .Params.tags }}
<footer class="post__footer">
{{ partial "post_tags.html" . }}
</footer>
{{ end }}
</article>
</div>
{{ partial "comments.html" . }}
</div>
{{ partial "footer.html" . }}