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 ++++ _layouts/page.html | 1 + 2 files changed, 5 insertions(+) (limited to '_layouts') 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