all repos — homestead @ 3a282a7e4ddaa627e63048f6bbe49c78ce21adfd

Code for my website

Remove unnecessary quoting of menu item URLs

Alan Pearce
commit

3a282a7e4ddaa627e63048f6bbe49c78ce21adfd

parent

25625b57c415d697c6e8fb636b7271441af66a62

1 file changed, 1 insertion(+), 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 -%}