base.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. {# 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. {% fontawesome_css %}
  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>