feat: Borrow $BASE_URL implementation from after-dark
37b4516e5b/templates/index.html (L42-L47)
This commit is contained in:
@ -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>
|
Reference in New Issue
Block a user