2
0

base.html 1.9 KB

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