base.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>
  6. {% block title %}
  7. {% if page.seo_title %}
  8. {{ page.seo_title }}
  9. {% else %}
  10. {{ page.title }}
  11. {% endif %}
  12. {% endblock %}
  13. {% block title_suffix %}
  14. | {{ settings("base.SiteSettings").title_suffix }}
  15. {% endblock %}
  16. </title>
  17. <meta name="description" content="{% block search_description %}{% if page.search_description %}{{ page.search_description }}{% endif %}{% endblock %}">
  18. <meta name="viewport" content="width=device-width, initial-scale=1">
  19. {# Force all links in the live preview panel to be opened in a new tab #}
  20. {% if request.in_preview_panel %}
  21. <base target="_blank">
  22. {% endif %}
  23. <link rel="stylesheet" href="{{ static('css/bootstrap.min.css') }}">
  24. <link rel="stylesheet" href="{{ static('css/font-marcellus.css') }}">
  25. <link rel="stylesheet" href="{{ static('css/main.css') }}">
  26. </head>
  27. <body class="{% block body_class %}template-{{ page.get_verbose_name()|slugify }}{% endblock %}">
  28. {{ wagtailuserbar() }}
  29. {% block header %}
  30. {% include "includes/header.html" %}
  31. {% endblock header %}
  32. {% block breadcrumbs %}
  33. {% include "tags/breadcrumbs.html" %}
  34. {% endblock breadcrumbs %}
  35. {% block messages %}
  36. {% include "includes/messages.html" %}
  37. {% endblock messages %}
  38. <main>
  39. {% block content %}
  40. {% endblock content %}
  41. </main>
  42. <hr>
  43. {% include "includes/footer.html" %}
  44. <script type="module" src="{{ static('js/main.js') }}"></script>
  45. </body>
  46. </html>