From af84b56ede63fa9bcb11f00fca78b7e3f0f1009c Mon Sep 17 00:00:00 2001 From: David Lapshin Date: Thu, 2 May 2024 00:32:32 +0300 Subject: [PATCH] Make the navbar non-mandatory I can imagine duckquill being used for one-page sites that simply don't need it, plus we can get rid of one more variable from theme.toml --- templates/partials/nav.html | 2 ++ theme.toml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/partials/nav.html b/templates/partials/nav.html index 6cb82f2..b8ca70c 100644 --- a/templates/partials/nav.html +++ b/templates/partials/nav.html @@ -1,3 +1,4 @@ +{% if config.extra.nav.links %} +{% endif %} diff --git a/theme.toml b/theme.toml index 2b55096..24d8b35 100644 --- a/theme.toml +++ b/theme.toml @@ -12,9 +12,6 @@ date_format = "%d %B %Y" issues_url = "" source_url = "" -[extra.nav] -links = [] - [author] name = "David Lapshin" homepage = "https://daudix.codeberg.page"