base.njk 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!doctype html>
  2. <html lang="en"{% if templateClass %} class="{{ templateClass }}"{% endif %}>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="generator" content="{{ eleventy.generator }}">
  7. <link rel="icon" href="https://torsion.org/borgmatic/static/borgmatic.png" type="image/x-icon">
  8. {% if page.url == '/' %}
  9. <title>borgmatic</title>
  10. {% else %}
  11. <title>borgmatic{% if subtitle or title %} - {% endif %}{{ subtitle + ' - ' if subtitle}}{{ title }}</title>
  12. {% endif %}
  13. {%- set css %}
  14. {% include 'index.css' %}
  15. {% include 'components/lists.css' %}
  16. {% include 'components/external-links.css' %}
  17. {% include 'components/minilink.css' %}
  18. {% include 'components/toc.css' %}
  19. {% include 'components/info-blocks.css' %}
  20. {% include 'prism-theme.css' %}
  21. {% endset %}
  22. <style>{{ css | safe }}</style>
  23. {% if feedTitle and feedUrl %}
  24. <link rel="alternate" href="{{ feedUrl }}" title="{{ feedTitle }}" type="application/atom+xml">
  25. {% endif %}
  26. </head>
  27. <body>
  28. {{ content | safe }}
  29. {% initClipboardJS %}
  30. </body>
  31. </html>