Hugo-theme-stack/layouts/_default/single.html

30 lines
975 B
HTML
Raw Normal View History

2020-08-22 07:20:08 -04:00
{{ define "body_class" }}2-column{{ end }}
{{ define "main" }}
2020-09-07 05:49:33 -04:00
<div class="container extended flex on-phone--column align-items--flex-start article-page with-toolbar">
2020-08-22 07:20:08 -04:00
{{ 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 }}