diff options
author | Alan Pearce | 2023-06-23 14:01:14 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-23 14:04:53 +0200 |
commit | 805b34faf0bbdaf135e16072b8dd9153a24368ad (patch) | |
tree | e4fe3dfe9c77cb653d03170d6e5f137fcdb96a81 /themes/bear/templates/nav.html | |
parent | fe119b75f2b3f8f3ba8c2367c3ec768538edc695 (diff) | |
download | website-805b34faf0bbdaf135e16072b8dd9153a24368ad.tar.lz website-805b34faf0bbdaf135e16072b8dd9153a24368ad.tar.zst website-805b34faf0bbdaf135e16072b8dd9153a24368ad.zip |
Fix overzealous URL encoding
Diffstat (limited to 'themes/bear/templates/nav.html')
-rw-r--r-- | themes/bear/templates/nav.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html index e006ab1..cf0d9b7 100644 --- a/themes/bear/templates/nav.html +++ b/themes/bear/templates/nav.html @@ -1,10 +1,10 @@ -<a href="{{ config.base_url }}">Home</a> +<a href="{{ config.base_url | safe }}">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> + <a href="{{ item.url | safe }}">{{ item.name }}</a> {%- else %} - <a href="{{ get_url(path=item.url )}}">{{ item.name }}</a> + <a href="{{ get_url(path=item.url) }}">{{ item.name }}</a> {%- endif %} {%- endfor %} {%- endif -%} |