mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +01:00
45e7e07a86
Post layout become exclusive for `post` section (with toolbar) Page layout become the default layout (without toolbar)
21 lines
No EOL
647 B
HTML
21 lines
No EOL
647 B
HTML
{{ define "container-class" }}article-page with-toolbar{{ end }}
|
|
{{ define "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 "comments/include" . }}
|
|
{{ end }}
|
|
|
|
{{ partialCached "footer/footer" . }}
|
|
|
|
{{- partial "article/components/photoswipe.html" . -}}
|
|
{{ end }} |