aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-10-25 10:34:29 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-10-25 11:43:06 +0200
commit520d947079a65d678a47fe9ad405cb6ee40744e4 (patch)
tree7a38ac254041328acc4ed15ec7d03125d7d71e83 /_includes
parentposts: redesign feed (diff)
downloadjekyll-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 '_includes')
-rw-r--r--_includes/jekyll-theme/sidebar/sep.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/_includes/jekyll-theme/sidebar/sep.html b/_includes/jekyll-theme/sidebar/sep.html
new file mode 100644
index 0000000..4791028
--- /dev/null
+++ b/_includes/jekyll-theme/sidebar/sep.html
@@ -0,0 +1,4 @@
+{% 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 %}