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

github.com/curttimson/hugo-theme-dopetrope.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.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a174d2c..75a9e4e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -23,14 +23,25 @@
<!-- Main -->
<div id="main-wrapper">
<div class="container">
+ {{ if or (eq .Site.Params.Sidebar.position "left") (eq .Site.Params.Sidebar.position "right") }}
<div class="row">
+ {{ if eq .Site.Params.Sidebar.position "left" }}
+ <div class="4u 12u(mobile)">
+ {{ partial "post/sidebar" . }}
+ </div>
+ {{ end }}
<div class="8u 12u(mobile)">
{{ partial "post/content.html" . }}
</div>
+ {{ if eq .Site.Params.Sidebar.position "right" }}
<div class="4u 12u(mobile)">
{{ partial "post/sidebar" . }}
</div>
+ {{ end }}
</div>
+ {{ else }}
+ {{ partial "post/content.html" . }}
+ {{ end }}
</div>
</div>