From 764e6d737cab4a209bc39cd0bcf6fb719d6b4a4f Mon Sep 17 00:00:00 2001 From: NPDebs Date: Mon, 30 Oct 2023 04:27:27 +0100 Subject: [PATCH 01/20] Implement conditionals for navbars Signed-off-by: NPDebs --- _layouts/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_layouts/index.html b/_layouts/index.html index 79c9894db..3133f1333 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -1,7 +1,10 @@ --- layout: base --- - -{% include _includes/default-header.html %} +{% if page.url contains "/openseeds/" %} + {% include _includes/openseeds-navbar.html %} +{% else %} + {% include _includes/default-header.html %} +{% endif %} {{ content }} {% include _includes/default-footer.html %} \ No newline at end of file From 9a968862ff63cc46b9c07b3a8810efbd77578436 Mon Sep 17 00:00:00 2001 From: NPDebs Date: Mon, 30 Oct 2023 04:27:47 +0100 Subject: [PATCH 02/20] Create new navbar for openseeds Signed-off-by: NPDebs --- _includes/openseeds-navbar.html | 77 +++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 _includes/openseeds-navbar.html diff --git a/_includes/openseeds-navbar.html b/_includes/openseeds-navbar.html new file mode 100644 index 000000000..8d2e5c2af --- /dev/null +++ b/_includes/openseeds-navbar.html @@ -0,0 +1,77 @@ + From b8980c6a640419ce9e89c3e1fb4c7268def2db67 Mon Sep 17 00:00:00 2001 From: NPDebs Date: Mon, 30 Oct 2023 21:17:16 +0100 Subject: [PATCH 03/20] Rename new openseeds navbar to header Signed-off-by: NPDebs --- _includes/{openseeds-navbar.html => openseeds-header.html} | 2 +- _layouts/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename _includes/{openseeds-navbar.html => openseeds-header.html} (98%) diff --git a/_includes/openseeds-navbar.html b/_includes/openseeds-header.html similarity index 98% rename from _includes/openseeds-navbar.html rename to _includes/openseeds-header.html index 8d2e5c2af..9cc22ba46 100644 --- a/_includes/openseeds-navbar.html +++ b/_includes/openseeds-header.html @@ -1,7 +1,7 @@