Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html37
1 files changed, 14 insertions, 23 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 82013b3..aabeee7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,30 +1,21 @@
-{{ define "body_class" }}2-column{{ end }}
+{{ define "container-class" }}article-page with-toolbar{{ 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 full-width">
- <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" . }}
+ <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/components/related-contents" . }}
+ {{ partial "article/article.html" . }}
- {{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}}
- {{ partial "comments/include" . }}
- {{ end }}
+ {{ partial "article/components/related-contents" . }}
- {{ partialCached "footer/footer" . }}
- </main>
- </div>
-</div>
+ {{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}}
+ {{ partial "comments/include" . }}
+ {{ end }}
-{{- partial "article/components/photoswipe.html" . -}}
+ {{ partialCached "footer/footer" . }}
+ {{- partial "article/components/photoswipe.html" . -}}
{{ end }} \ No newline at end of file