Hugo-theme-stack/layouts/_default/single.html
2020-09-07 11:49:33 +02:00

30 lines
975 B
HTML

{{ define "body_class" }}2-column{{ end }}
{{ define "main" }}
<div class="container extended flex on-phone--column align-items--flex-start article-page with-toolbar">
{{ partial "sidebar/left.html" . }}
<div class="flex column do-not-overflow">
<main class="main">
<div id="article-toolbar">
<a href="{{ .Site.BaseURL }}" class="back-home">
{{ (resources.Get "icons/back.svg").Content | safeHTML }}
<span>Back</span>
</a>
</div>
{{ partial "article/article.html" . }}
{{ partial "article/components/related-contents" . }}
{{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}}
{{ partial "article/components/comment" . }}
{{ end }}
{{ partialCached "footer" . }}
</main>
</div>
</div>
{{- partial "article/components/photoswipe.html" . -}}
{{ end }}