all repos — website @ 8ab05aa7c96bfb59ea6e50e0dfc6848a37e47447

My website

Use relative URLs in HTML

Alan Pearce
commit

8ab05aa7c96bfb59ea6e50e0dfc6848a37e47447

parent

7b9d6622a4dd97075e8334f75dff9661e87e75ff

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M themes/bear/templates/nav.htmlthemes/bear/templates/nav.html
@@ -1,10 +1,10 @@
- <a href="{{ config.base_url | safe }}">Home</a> + <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="{{ get_url(path=item.url) }}">{{ item.name }}</a> + <a href="{{ item.url }}">{{ item.name }}</a> {%- endif %} {%- endfor %} {%- endif -%}