Support paths relative to site root in LINKS and ICONS
parent
f4189db4de
commit
d2066d2e5c
|
@ -14,7 +14,7 @@
|
|||
{% if LINKS or (DISPLAY_PAGES_ON_MENU and pages) or ICONS %}
|
||||
<ul class="list-inline">
|
||||
{% for title, link in LINKS %}
|
||||
<li class="list-inline-item"><a href="{{ link }}" target="_blank">{{ title }}</a></li>
|
||||
<li class="list-inline-item"><a href="{{ url(link) }}" target="_blank">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if DISPLAY_PAGES_ON_MENU %}
|
||||
{% for page in pages %}
|
||||
|
@ -28,7 +28,7 @@
|
|||
{% if (LINKS or (DISPLAY_PAGES_ON_MENU and pages)) and loop.first %}
|
||||
<li class=" list-inline-item text-muted">|</li>
|
||||
{% endif %}
|
||||
<li class="list-inline-item"><a class="fa fa-{{ icon }}" href="{{ link }}" target="_blank"></a></li>
|
||||
<li class="list-inline-item"><a class="fa fa-{{ icon }}" href="{{ url(link) }}" target="_blank"></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue