Hugo-theme-stack/layouts/_default/single.html
2020-08-22 13:20:08 +02:00

30 lines
962 B
HTML

{{ define "body_class" }}2-column{{ end }}
{{ define "main" }}
<div class="container extended flex on-phone--column align-items--flex-start article-page">
{{ 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 }}