aboutsummaryrefslogtreecommitdiffstatshomepage
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
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
-rw-r--r--_includes/common/sidebar.html2
-rw-r--r--feed/index.html2
2 files changed, 4 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 %}
diff --git a/feed/index.html b/feed/index.html
index 3660a51..7227bab 100644
--- a/feed/index.html
+++ b/feed/index.html
@@ -5,5 +5,7 @@ navbar:
link: true
priority: 2
paginated: true
+sidebar:
+ hide: true
---
{% include posts/feed.html %}