base.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% load static wagtailuserbar %}
  2. <!DOCTYPE html>
  3. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  4. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  5. <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
  6. <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  7. <head>
  8. <meta charset="utf-8" />
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  10. <title>
  11. {% block title %}
  12. {% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}
  13. {% endblock %}
  14. {% block title_suffix %}
  15. {% with self.get_site.site_name as site_name %}
  16. {% if site_name %}- {{ site_name }}{% endif %}
  17. {% endwith %}
  18. {% endblock %}
  19. </title>
  20. <meta name="description" content="" />
  21. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  22. {# Global stylesheets #}
  23. <link rel="stylesheet" type="text/css" href="{% static 'css/layout.css' %}">
  24. {% block extra_css %}
  25. {# Override this in templates to add extra stylesheets #}
  26. {% endblock %}
  27. </head>
  28. <body class="{% block body_class %}{% endblock %}">
  29. {% wagtailuserbar %}
  30. {% block content %}{% endblock %}
  31. {# Global javascript #}
  32. <script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
  33. <script type="text/javascript" src="{% static 'js/jquery.backtotop.js' %}"></script>
  34. <script type="text/javascript" src="{% static 'js/jquery.mobilemenu.js' %}"></script>
  35. {% block extra_js %}
  36. {# Override this in templates to add extra javascript #}
  37. {% endblock %}
  38. </body>
  39. </html>