base.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {% load navigation_tags static wagtailuserbar wagtailfontawesome %}
  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. | The Wagtail Bakery
  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. <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
  21. {% fontawesome_css %}
  22. <link rel="stylesheet" href="{% static 'css/font-marcellus.css' %}">
  23. <link rel="stylesheet" href="{% static 'css/font-open-sans.css' %}">
  24. <link rel="stylesheet" href="{% static 'css/main.css' %}">
  25. </head>
  26. <body class="{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %}">
  27. {% wagtailuserbar %}
  28. {% block header %}
  29. {% include "includes/header.html" with parent=site_root calling_page=self %}
  30. {% endblock header %}
  31. {% block breadcrumbs %}
  32. {# breadcrumbs is defined in base/templatetags/navigation_tags.py #}
  33. {% breadcrumbs %}
  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>