diff options
Diffstat (limited to 'jthanio/templates/base.html')
-rw-r--r-- | jthanio/templates/base.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/jthanio/templates/base.html b/jthanio/templates/base.html new file mode 100644 index 0000000..82a3fe8 --- /dev/null +++ b/jthanio/templates/base.html @@ -0,0 +1,40 @@ +{% load static wagtailuserbar %} + +<!DOCTYPE html> +<html class="no-js" lang="en"> + <head> + <meta charset="utf-8" /> + <title> + {% block title %} + {% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %} + {% endblock %} + {% block title_suffix %} + {% with self.get_site.site_name as site_name %} + {% if site_name %}- {{ site_name }}{% endif %} + {% endwith %} + {% endblock %} + </title> + <meta name="description" content="" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + + {# Global stylesheets #} + <link rel="stylesheet" type="text/css" href="{% static 'css/jthanio.css' %}"> + + {% block extra_css %} + {# Override this in templates to add extra stylesheets #} + {% endblock %} + </head> + + <body class="{% block body_class %}{% endblock %}"> + {% wagtailuserbar %} + + {% block content %}{% endblock %} + + {# Global javascript #} + <script type="text/javascript" src="{% static 'js/jthanio.js' %}"></script> + + {% block extra_js %} + {# Override this in templates to add extra javascript #} + {% endblock %} + </body> +</html> |