all repos — website @ ebcfebbb241a7b561e4fef4ee8c24307cc8cbc1e

My website

Crudely enable external nav menu links
Alan Pearce alan@alanpearce.eu
Tue, 18 Apr 2023 07:39:29 +0200
commit

ebcfebbb241a7b561e4fef4ee8c24307cc8cbc1e

parent

3560f40a578151680b5ffb7c0237c8c88424ca37

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M templates/nav.htmltemplates/nav.html
@@ -1,6 +1,10 @@ <a href="{{ config.base_url }}">Home</a>
 {%- if config.extra.main_menu %}
 {%- for item in config.extra.main_menu %}
+{%- if item.url is matching("https?://") %}
+<a href="{{ item.url }}">{{ item.name }}</a>
+{%- else %}
 <a href="{{ get_url(path=item.url )}}">{{ item.name }}</a>
+{%- endif %}
 {%- endfor %}
 {%- endif %}