calepin 0.0.18

A Rust CLI for preprocessing Typst documents with executable code chunks
    {% if site.sidebar %}
    {% set ns = namespace(prev = none, next = none, active_found = false, previous = none) %}
    {% for item in site.sidebar %}
        {% if ns.active_found %}
            {% set ns.next = item %}
            {% set ns.active_found = false %}
        {% elif item.active %}
            {% set ns.prev = ns.previous %}
            {% set ns.active_found = true %}
        {% endif %}
        {% if not item.active %}
            {% set ns.previous = item %}
        {% endif %}
    {% endfor %}
    {% if ns.prev or ns.next %}
    <footer class="academic-page-nav" aria-label="Page navigation">
        {% if ns.prev %}
        <a class="academic-page-nav-link" href="{{ ns.prev.href }}">
            <span aria-hidden="true">&larr;</span>
            <span>{{ ns.prev.label }}</span>
        </a>
        {% endif %}
        {% if ns.next %}
        <a class="academic-page-nav-link academic-page-nav-link-next" href="{{ ns.next.href }}">
            <span>{{ ns.next.label }}</span>
            <span aria-hidden="true">&rarr;</span>
        </a>
        {% endif %}
    </footer>
    {% endif %}
    {% endif %}