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 --- _layouts/default.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to '_layouts/default.html') 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 %} -- cgit v1.2.3