From 520d947079a65d678a47fe9ad405cb6ee40744e4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 25 Oct 2022 10:34:29 +0200 Subject: _layouts: sidebar separator only for posts and pages Let plain pages take care of it themselves. This fits nicely with the feed, which kinda already has a separator after each entry. --- _layouts/default.html | 4 ---- _layouts/page.html | 1 + _layouts/post.html | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) (limited to '_layouts') 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 @@
{{ content }} - {% unless site.settings.sidebar.hide or page.sidebar.hide %} - {% comment %}Separate the content from the sidebar on narrow screens.{% endcomment %} - - {% endunless %}
{% 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 %} -- cgit v1.2.3