diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 11 |
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> |