diff options
author | Alan Pearce | 2023-07-06 20:31:08 +0200 |
---|---|---|
committer | Alan Pearce | 2023-07-06 20:31:08 +0200 |
commit | 8ab05aa7c96bfb59ea6e50e0dfc6848a37e47447 (patch) | |
tree | 85ff9d3644cbe9e38c745ca5d22180aa94d39827 /themes/bear/templates/nav.html | |
parent | 7b9d6622a4dd97075e8334f75dff9661e87e75ff (diff) | |
download | website-8ab05aa7c96bfb59ea6e50e0dfc6848a37e47447.tar.lz website-8ab05aa7c96bfb59ea6e50e0dfc6848a37e47447.tar.zst website-8ab05aa7c96bfb59ea6e50e0dfc6848a37e47447.zip |
Use relative URLs in HTML
Diffstat (limited to 'themes/bear/templates/nav.html')
-rw-r--r-- | themes/bear/templates/nav.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/bear/templates/nav.html b/themes/bear/templates/nav.html index ba41879..579661e 100644 --- a/themes/bear/templates/nav.html +++ b/themes/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 -%} |