mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
26 lines
750 B
HTML
26 lines
750 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>
|
|
|
|
<!-- contents -->
|
|
{{ if .Site.Params.toc | default true }}
|
|
{{ partial "toc" . }}
|
|
{{ end }}
|
|
|
|
{{ 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" . }}
|
|
|
|
{{- partialCached "article/components/photoswipe.html" . -}}
|
|
{{ end }} |