Fix MENUITEMS urls

Looking at the pelican default themes (and others), we can see that
menuitems are expected to be full URLs, not URLs relative to the
SITEURL.
This commit is contained in:
Arnaud Rebillout
2020-08-07 10:37:51 +07:00
parent 8bd6ec8a59
commit 3a92d3de28
+1 -1
View File
@@ -16,7 +16,7 @@
<ul class="sidebar-nav"> <ul class="sidebar-nav">
{% if MENUITEMS %} {% if MENUITEMS %}
{% for title, url in MENUITEMS %} {% for title, url in MENUITEMS %}
<li><a href="{{ SITEURL }}/{{ url }}">{{ title }}</a></li> <li><a href="{{ url }}">{{ title }}</a></li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if DISPLAY_PAGES_ON_MENU %} {% if DISPLAY_PAGES_ON_MENU %}