From ebcfebbb241a7b561e4fef4ee8c24307cc8cbc1e Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Tue, 18 Apr 2023 07:39:29 +0200
Subject: Crudely enable external nav menu links
---
templates/nav.html | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'templates/nav.html')
diff --git a/templates/nav.html b/templates/nav.html
index 135e407..b0cf643 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -1,6 +1,10 @@
Home
{%- if config.extra.main_menu %}
{%- for item in config.extra.main_menu %}
+{%- if item.url is matching("https?://") %}
+{{ item.name }}
+{%- else %}
{{ item.name }}
+{%- endif %}
{%- endfor %}
{%- endif %}
--
cgit 1.4.1