aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts
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
parentbootstrap: color navbar light blue (diff)
downloadjekyll-theme-389b617912641e36eaa93f3a2c9b4b9dfa39da05.tar.gz
jekyll-theme-389b617912641e36eaa93f3a2c9b4b9dfa39da05.zip
separate content from sidebar automatically
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html4
-rw-r--r--_layouts/page.html1
2 files changed, 5 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 %}
diff --git a/_layouts/page.html b/_layouts/page.html
index 11c37a1..090100f 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -2,4 +2,5 @@
layout: default
---
<h1>{{ page.title }}</h1>
+<hr/>
{{ content }}