forked from github/pelican-alchemy
Support paths relative to site root in LINKS and ICONS
This commit is contained in:
parent
f4189db4de
commit
d2066d2e5c
1 changed files with 2 additions and 2 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Reference in a new issue