aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/sidebar.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 09:59:51 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-23 09:59:51 +0300
commit4afb428ca069605c0527f5a0e39fcae8e19cec69 (patch)
treeb6a6c550b4657a228240ca76330348324cda22bc /_includes/common/sidebar.html
parentsidebar: don't print anything if there're no posts (diff)
downloadjekyll-theme-4afb428ca069605c0527f5a0e39fcae8e19cec69.tar.gz
jekyll-theme-4afb428ca069605c0527f5a0e39fcae8e19cec69.zip
sidebar: add ability to hide it
Diffstat (limited to '')
-rw-r--r--_includes/common/sidebar.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/_includes/common/sidebar.html b/_includes/common/sidebar.html
index 113d171..43b25dd 100644
--- a/_includes/common/sidebar.html
+++ b/_includes/common/sidebar.html
@@ -1,3 +1,4 @@
+{% unless site.settings.sidebar.hide or page.sidebar.hide %}
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-12">
<h4>About</h4>
@@ -37,3 +38,4 @@
</div>
{% endif %}
</div>
+{% endunless %}