From b662772a0fc2148cdd201a6d227c1e3d1268520d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 16 Oct 2024 18:37:21 +0200 Subject: [PATCH] fix: resposnive part 1 --- _includes/layouts/base.njk | 4 +- _includes/layouts/home.njk | 4 +- _includes/layouts/parent.njk | 16 ++----- public/css/index.css | 87 +++++++++++++++++++++++++++++++++++- public/js/mobile-sidebar.js | 48 ++++++++++++++++++++ 5 files changed, 140 insertions(+), 19 deletions(-) create mode 100644 public/js/mobile-sidebar.js diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index ba5a9ef..a77e70f 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -2,7 +2,7 @@ layout: layouts/parent.njk ---
-
+
{{ content | safe }}
@@ -18,7 +18,7 @@ layout: layouts/parent.njk
{%- endif -%} -
+

Sommaire

{{ content | toc | safe }}
diff --git a/_includes/layouts/home.njk b/_includes/layouts/home.njk index a66197f..8ac78e8 100644 --- a/_includes/layouts/home.njk +++ b/_includes/layouts/home.njk @@ -2,7 +2,7 @@ layout: layouts/parent.njk ---
-
+
{{ content | safe }}
@@ -18,7 +18,7 @@ layout: layouts/parent.njk
{%- endif -%} -
+

Sommaire

{{ content | toc | safe }}
diff --git a/_includes/layouts/parent.njk b/_includes/layouts/parent.njk index dfd47b1..1b1d685 100644 --- a/_includes/layouts/parent.njk +++ b/_includes/layouts/parent.njk @@ -27,19 +27,6 @@

{{ metadata.title }}

- -