feat: Borrow $BASE_URL implementation from after-dark

37b4516e5b/templates/index.html (L42-L47)
This commit is contained in:
daudix-UFO
2023-12-25 05:31:59 +03:00
parent b9af50749b
commit ff88bdb6d4
2 changed files with 6 additions and 6 deletions

View File

@ -1,17 +1,17 @@
<nav class="nav">
<div class="nav-container">
<a href="{{ config.base_url }}">{{ config.title }}</a>
<a href="{{ get_url(path='') }}">{{ config.title }}</a>
<ul>
{% for link in config.extra.nav.links %}
<li>
<a href="{{ link.url }}">{{ link.name }}</a>
<a href="{{ link.url | safe | replace(from='$BASE_URL', to=get_url(path='')) | safe }}">{{ link.name }}</a>
</li>
{% endfor %}
{% if config.extra.nav.show_feed %}
<li>
<a href="{{ config.base_url }}/atom.xml">Feed</a>
<a href="{{ get_url(path='atom.xml') }}">Feed</a>
</li>
{% endif %}
</ul>
</div>
</nav>
</nav>