summaryrefslogtreecommitdiff
path: root/jthanio/templates/base.html
blob: 44b7d8c6a5c836af1f34fd3a225fda2d4d1700eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% 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' %}">
    <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.css' %}">

    {% block extra_css %}
    {# Override this in templates to add extra stylesheets #}
    {% endblock %}
  </head>
  <link rel="shortcut icon" type="image/png" href="{% static 'img/favicon.ico' %}"/>
  <body class="{% block body_class %}{% endblock %}">
    <div id="page-content">
      {% include "navigation.html" %}

      {% wagtailuserbar %}
      {% block content %}{% endblock %}

      {% block extra_js %}
      {# Override this in templates to add extra javascript #}
      {% endblock %}
    </div>
    <footer class="footer">
      <div class="text-center bg-dark">
        <span class="text-muted">Copyright &copy; jthan.io {% now "Y" %}</span>
      </div>
    </footer>

    {# Global javascript #}
    <script src="{% static 'js/jquery-3.4.1.min.js' %}"></script>
    <script src="{% static 'js/bootstrap.js' %}"></script>
  </body>
</html>