base.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="{% if page.search_description %}{{ page.search_description }}{% endif %}">
  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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  26. <link rel="stylesheet" href="{% static 'css/font-marcellus.css' %}">
  27. <link rel="stylesheet" href="{% static 'css/font-open-sans.css' %}">
  28. <link rel="stylesheet" href="{% static 'css/main.css' %}">
  29. </head>
  30. <body class="{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %}">
  31. {% wagtailuserbar %}
  32. {% block header %}
  33. {% include "includes/header.html" with parent=site_root calling_page=self %}
  34. {% endblock header %}
  35. {% block breadcrumbs %}
  36. {# breadcrumbs is defined in base/templatetags/navigation_tags.py #}
  37. {% breadcrumbs %}
  38. {% endblock breadcrumbs %}
  39. {% block messages %}
  40. {% include "includes/messages.html" %}
  41. {% endblock messages %}
  42. <main>
  43. {% block content %}
  44. {% endblock content %}
  45. </main>
  46. <hr>
  47. {% include "includes/footer.html" %}
  48. <script type="module" src="{% static 'js/main.js' %}"></script>
  49. </body>
  50. </html>