about summary refs log tree commit diff stats
path: root/themes/bear/templates/nav.html
diff options
context:
space:
mode:
authorAlan Pearce2023-07-08 09:27:00 +0200
committerAlan Pearce2023-07-08 09:27:00 +0200
commitfddfaa07b85d470d0ea00ceeb2892187ba038e75 (patch)
tree39e3ffc43d5523dca95498ecfdb053116156cc3b /themes/bear/templates/nav.html
parentd7fc1b31243ffe78695f93131ab2003b6f2b4baa (diff)
downloadwebsite-fddfaa07b85d470d0ea00ceeb2892187ba038e75.tar.lz
website-fddfaa07b85d470d0ea00ceeb2892187ba038e75.tar.zst
website-fddfaa07b85d470d0ea00ceeb2892187ba038e75.zip
Remove unnecessary quoting of menu item URLs
Diffstat (limited to 'themes/bear/templates/nav.html')
-rw-r--r--themes/bear/templates/nav.html6
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 -%}