aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts/default.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 15:21:06 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 15:21:06 +0300
commit389b617912641e36eaa93f3a2c9b4b9dfa39da05 (patch)
treefd4fc8823c7de19d61f4490180ef143a7d0507a0 /_layouts/default.html
parentbootstrap: color navbar light blue (diff)
downloadjekyll-theme-389b617912641e36eaa93f3a2c9b4b9dfa39da05.tar.gz
jekyll-theme-389b617912641e36eaa93f3a2c9b4b9dfa39da05.zip
separate content from sidebar automatically
Diffstat (limited to '_layouts/default.html')
-rw-r--r--_layouts/default.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index f151314..caa95f1 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -2,6 +2,10 @@
<div class="row">
<div class="col-md-8">
{{ content }}
+ {% unless site.settings.sidebar.hide or page.sidebar.hide %}
+ {% comment %}Separate the content from the sidebar on narrow screens.{% endcomment %}
+ <hr/>
+ {% endunless %}
</div>
<div class="col-md-4">
{% include common/sidebar.html %}