all repos — website @ fddfaa07b85d470d0ea00ceeb2892187ba038e75

My website

Remove unnecessary quoting of menu item URLs
Alan Pearce alan@alanpearce.eu
Sat, 08 Jul 2023 09:27:00 +0200
commit

fddfaa07b85d470d0ea00ceeb2892187ba038e75

parent

d7fc1b31243ffe78695f93131ab2003b6f2b4baa

1 files changed, 1 insertions(+), 5 deletions(-)

jump to
M themes/bear/templates/nav.htmlthemes/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 -%}