Browse Source

Support paths relative to site root in LINKS and ICONS

main
Vitaly Potyarkin 3 years ago
parent
commit
d2066d2e5c
  1. 4
      alchemy/templates/include/header.html

4
alchemy/templates/include/header.html

@ -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…
Cancel
Save