header.njk 938 B

12345678910111213
  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 data-pagefind-meta="title" aria-hidden="true" style="display: none">
  8. {% for entry in breadcrumb %}{{ entry.title }} > {% endfor %}{{ title | safe }}
  9. </div>
  10. </div>
  11. <h1 class="elv-hed">{{ title | safe }}</h1>
  12. {% if page.url == '/' %}<h3>It's your data. Keep it that way.</h3>{% endif %}
  13. </header>