diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-23 09:59:51 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-23 09:59:51 +0300 |
commit | 4afb428ca069605c0527f5a0e39fcae8e19cec69 (patch) | |
tree | b6a6c550b4657a228240ca76330348324cda22bc | |
parent | sidebar: don't print anything if there're no posts (diff) | |
download | jekyll-theme-4afb428ca069605c0527f5a0e39fcae8e19cec69.tar.gz jekyll-theme-4afb428ca069605c0527f5a0e39fcae8e19cec69.zip |
sidebar: add ability to hide it
-rw-r--r-- | _includes/common/sidebar.html | 2 | ||||
-rw-r--r-- | feed/index.html | 2 |
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 %} |