diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-10-25 10:34:29 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-10-25 11:43:06 +0200 |
commit | 520d947079a65d678a47fe9ad405cb6ee40744e4 (patch) | |
tree | 7a38ac254041328acc4ed15ec7d03125d7d71e83 /_layouts | |
parent | posts: redesign feed (diff) | |
download | jekyll-theme-520d947079a65d678a47fe9ad405cb6ee40744e4.tar.gz jekyll-theme-520d947079a65d678a47fe9ad405cb6ee40744e4.zip |
_layouts: sidebar separator only for posts and pagesold_categories
Let plain pages take care of it themselves. This fits nicely with the
feed, which kinda already has a separator after each entry.
Diffstat (limited to '')
-rw-r--r-- | _layouts/default.html | 4 | ||||
-rw-r--r-- | _layouts/page.html | 1 | ||||
-rw-r--r-- | _layouts/post.html | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index 1f39d9f..827500e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,10 +2,6 @@ <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 class="sidebar-sep"/> - {% endunless %} </div> <div class="col-md-4"> {% include jekyll-theme/sidebar.html %} diff --git a/_layouts/page.html b/_layouts/page.html index 6455acc..4a13984 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -3,3 +3,4 @@ layout: default --- {% include jekyll-theme/page/title.html %} {{ content }} +{% include jekyll-theme/sidebar/sep.html %} diff --git a/_layouts/post.html b/_layouts/post.html index 12eade5..6ac37f7 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,3 +3,4 @@ layout: default --- {% include jekyll-theme/posts/header.html %} {{ content }} +{% include jekyll-theme/sidebar/sep.html %} |