2019-05-20 20:41:39 +02:00
|
|
|
---
|
|
|
|
layout: layouts/base.njk
|
|
|
|
templateClass: elv-default
|
|
|
|
headerClass: elv-header-default
|
|
|
|
---
|
|
|
|
{% include "header.njk" %}
|
|
|
|
|
|
|
|
<main class="elv-layout{% if layoutClass %} {{ layoutClass }}{% endif %}">
|
2020-08-21 23:27:47 +02:00
|
|
|
<div id="documentation" class="elv-toc">
|
|
|
|
<div>
|
|
|
|
{% 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>
|
|
|
|
{%- if entry.children.length -%}
|
|
|
|
<ul>
|
|
|
|
{%- for child in entry.children %}{{ renderNavListItem(child) }}{% endfor -%}
|
|
|
|
</ul>
|
|
|
|
{%- endif -%}
|
|
|
|
</li>
|
|
|
|
{%- endmacro %}
|
2019-10-10 23:27:48 +02:00
|
|
|
|
2020-08-21 23:27:47 +02:00
|
|
|
<ul class="elv-toc-list">
|
|
|
|
{%- for entry in navPages %}{{ renderNavListItem(entry) }}{%- endfor -%}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ content | safe }}
|
|
|
|
|
|
|
|
{% include 'components/suggestion-form.html' %}
|
2019-05-20 20:41:39 +02:00
|
|
|
</main>
|