|
@@ -11,7 +11,7 @@ headerClass: elv-header-default
|
|
|
{% set navPages = collections.all | eleventyNavigation %}
|
|
|
{% macro renderNavListItem(entry) -%}
|
|
|
<li{% if entry.url == page.url %} class="elv-toc-active"{% endif %}>
|
|
|
- <a {% if entry.url %}href="https://torsion.org/borgmatic/docs{{ entry.url | url }}"{% endif %}>{{ entry.title }}</a>
|
|
|
+ <a {% if entry.url %}href="{% if borgmatic.environment == "production" %}https://torsion.org/borgmatic/docs{% else %}http://localhost:8080/docs{% endif %}{{ entry.url | url }}"{% endif %}>{{ entry.title }}</a>
|
|
|
{%- if entry.children.length -%}
|
|
|
<ul>
|
|
|
{%- for child in entry.children %}{{ renderNavListItem(child) }}{% endfor -%}
|