header.njk 750 B

12345678910
  1. <header class="elv-layout elv-layout-full elv-header{% if headerClass %} {{ headerClass }}{% endif %}">
  2. {% if page.url != '/' %}<h3><a href="https://torsion.org/borgmatic/">borgmatic</a></h3>{% endif %}
  3. <div class="container" id="breadcrumb">
  4. {% set breadcrumb = collections.all | eleventyNavigationBreadcrumb(eleventyNavigation.key, {allowMissing: true}) %}
  5. {# The replace() is a work-around for https://github.com/11ty/eleventy-navigation/issues/56 #}
  6. {{ breadcrumb | eleventyNavigationToHtml | replace('href="/reference/', 'href="/borgmatic/reference/') | safe }}
  7. </div>
  8. <h1 class="elv-hed">{{ title | safe }}</h1>
  9. {% if page.url == '/' %}<h3>It's your data. Keep it that way.</h3>{% endif %}
  10. </header>