From 389b617912641e36eaa93f3a2c9b4b9dfa39da05 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 23 Mar 2022 15:21:06 +0300 Subject: separate content from sidebar automatically --- _includes/categories/all.html | 1 - _includes/posts/feed.html | 1 - _layouts/default.html | 4 ++++ _layouts/page.html | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_includes/categories/all.html b/_includes/categories/all.html index e21b3f6..32b8ad7 100644 --- a/_includes/categories/all.html +++ b/_includes/categories/all.html @@ -1,6 +1,5 @@ {% if site.posts.size == 0 %}

Sorry, no posts have been added yet.

-
{% else %} {% for category in site.categories %}

{{ category[0] }}

diff --git a/_includes/posts/feed.html b/_includes/posts/feed.html index 14cc41e..4b4ea8b 100644 --- a/_includes/posts/feed.html +++ b/_includes/posts/feed.html @@ -1,6 +1,5 @@ {% if site.posts.size == 0 %}

Sorry, no posts have been added yet.

-
{% else %} {% for post in paginator.posts %}
diff --git a/_layouts/default.html b/_layouts/default.html index f151314..caa95f1 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,6 +2,10 @@
{{ content }} + {% unless site.settings.sidebar.hide or page.sidebar.hide %} + {% comment %}Separate the content from the sidebar on narrow screens.{% endcomment %} +
+ {% endunless %}
{% include common/sidebar.html %} diff --git a/_layouts/page.html b/_layouts/page.html index 11c37a1..090100f 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -2,4 +2,5 @@ layout: default ---

{{ page.title }}

+
{{ content }} -- cgit v1.2.3