diff options
author | Alan Pearce | 2023-07-08 09:27:00 +0200 |
---|---|---|
committer | Alan Pearce | 2023-07-08 09:27:00 +0200 |
commit | fddfaa07b85d470d0ea00ceeb2892187ba038e75 (patch) | |
tree | 39e3ffc43d5523dca95498ecfdb053116156cc3b | |
parent | d7fc1b31243ffe78695f93131ab2003b6f2b4baa (diff) | |
download | website-fddfaa07b85d470d0ea00ceeb2892187ba038e75.tar.lz website-fddfaa07b85d470d0ea00ceeb2892187ba038e75.tar.zst website-fddfaa07b85d470d0ea00ceeb2892187ba038e75.zip |
Remove unnecessary quoting of menu item URLs
-rw-r--r-- | themes/bear/templates/nav.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html index 579661e..fe5fdd6 100644 --- a/themes/bear/templates/nav.html +++ b/themes/bear/templates/nav.html @@ -1,10 +1,6 @@ <a href="/">Home</a> {%- if config.extra.main_menu %} {%- for item in config.extra.main_menu %} - {%- if item.url is matching("https?://") %} - <a href="{{ item.url | safe }}">{{ item.name }}</a> - {%- else %} - <a href="{{ item.url }}">{{ item.name }}</a> - {%- endif %} + <a href="{{ item.url | safe }}">{{ item.name }}</a> {%- endfor %} {%- endif -%} |