view docs/templates/inc/family-sidebar.html @ 1051:971b4d67e82a

serve: Fix problems with assets disappearing between servings. When an asset file changes, its source's pipeline is re-run. But that created a bake record that only had that pipeline's output, so the other outputs were incorrectly considered empty and therefore any stray files were removed. Now we copy over bake records for the pipelines we don't run.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 26 Jan 2018 18:05:02 -0800
parents 61d53d2163d6
children fd95fef51705
line wrap: on
line source

{% macro pagelink(title, url) -%}
    <a href="{{url}}"{% if url == page.url %} class="active"{% endif %}>{{title}}</a>
{%- endmacro %}

<ul class="doc-level1">
{% for p in family.root %}
{% if p.is_dir and p.is_page %}
    <li>{{ pagelink(p.title, p.url) }}
        <ul class="doc-level2">
        {% for p2 in p.children %}
            <li>{{ pagelink(p2.title, p2.url) }}</li>
        {% endfor %}
        </ul>
    </li>
{% elif not p.is_dir and p.order %}
    <li>{{ pagelink(p.title, p.url) }}</li>
{% endif %}
{% endfor %}
</ul>