diff options
author | Alan Pearce | 2023-04-18 07:39:29 +0200 |
---|---|---|
committer | Alan Pearce | 2023-04-18 07:39:29 +0200 |
commit | ebcfebbb241a7b561e4fef4ee8c24307cc8cbc1e (patch) | |
tree | 2e0a6a56e00aaa029ef6b80c86139abab37c4da0 | |
parent | 3560f40a578151680b5ffb7c0237c8c88424ca37 (diff) | |
download | zola-bearblog-ebcfebbb241a7b561e4fef4ee8c24307cc8cbc1e.tar.lz zola-bearblog-ebcfebbb241a7b561e4fef4ee8c24307cc8cbc1e.tar.zst zola-bearblog-ebcfebbb241a7b561e4fef4ee8c24307cc8cbc1e.zip |
Crudely enable external nav menu links
-rw-r--r-- | templates/nav.html | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ <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 %} |