This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbase.html
105 lines (95 loc) · 4.79 KB
/
base.html
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{% load compress static %}
{% block doctype %}<!DOCTYPE html>{% endblock %}
<html lang="{% block html_lang %}en{% endblock %}" {% block html_attributes %}{% endblock %}>
<head {% block head_attributes %}prefix="og: http://ogp.me/ns#"{% endblock %}>
{% block head %}
{% block credits %}
<!-- Hello. We're the Interaction Consortium (https://interaction.net.au) -->
<!-- We made this. -->
{% endblock %}
{% block meta %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="{% block meta_viewport %}width=device-width, initial-scale=1{% endblock %}">
<meta name="description" content="{% block meta_description %}{% endblock %}">
<link rel="author" href="/humans.txt" />
{% block open_graph %}
<meta property="og:title" content="{% block og_title %}{{ page.get_og_title }}{% endblock %}">
<meta property="og:type" content="{% block og_type %}website{% endblock %}">
<meta property="og:image" content="{% block og_image %}{% with page.get_og_image_url as og_image %}{% if og_image %}{{ og_image|safe }}{% endif %}{% endwith %}{% endblock %}">
<meta property="og:site_name" content="{% block og_site_name %}{{ SITE_NAME }}{% endblock %}">
<meta property="og:description" content="{% block og_description %}{{ page.get_og_description }}{% endblock %}">
<meta name="twitter:card" content="{% block twitter_card %}summary_large_card{% endblock %}" />
<meta name="twitter:site" content="{% block twitter_site %}{{ SITE_TWITTER_USERNAME }}{% endblock %}" />
<meta name="twitter:creator" content="{% block twitter_creator %}{{ SITE_TWITTER_USERNAME }}{% endblock %}" />
<meta name="twitter:title" content="{% block twitter_title %}{{ page.get_og_title }}{% endblock %}" />
<meta name="twitter:description" content="{% block twitter_description %}{{ page.get_og_description }}{% endblock %}" />
<meta name="twitter:image" content="{% block twitter_image %}{% with page.get_og_image_url as og_image %}{% if og_image %}{{ og_image|safe }}{% endif %}{% endwith %}{% endblock %}" />
{% endblock %}
{% if debug %}
<meta name="robots" content="noindex">
{% endif %}
{% endblock %}
<title>{% if request.IS_DRAFT %}PREVIEW: {% endif %}{% block title %}{% if page.get_title %}{{ page.get_title|safe }} - {% endif %}{{ SITE_NAME|safe }}{% endblock %}</title>
{% block head_css %}
{# CSS files hosted externally #}
{% block external_css %}{% endblock %}
{# Base CSS files #}
{% compress css file %}
{% block icekit_css %}
<link rel="stylesheet" href="{% static 'icekit/bower_components/bootstrap/dist/css/bootstrap.css' %}">
<link rel="stylesheet" href="{% static 'icekit/bower_components/font-awesome/css/font-awesome.css' %}">
<link rel="stylesheet" type="text/x-scss" href="{% static 'icekit/styles/icekit.scss' %}">
{% endblock %}
{# Default styling for a project, designed to be overridden once a build is underway #}
{% block base_css %}
<link rel="stylesheet" type="text/x-scss" href="{% static 'icekit/styles/site.scss' %}">
{% endblock %}
{% endcompress %}
{# Extra CSS files - section/page specific, etc #}
{% compress css file %}
{% block css %}{% endblock %}
{% endcompress %}
{% endblock %}
{# Only put JS here if you need to block rendering, otherwise put it in the `js` block #}
{% block head_js %}{% endblock %}
{% block analytics %}
{% include 'icekit/analytics.html' %}
{% endblock %}
{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %} {% if request.IS_DRAFT %}preview{% endif %}" {% block body_attributes %}{% endblock %}>
{% block body %}
{% block messages %}
{% include 'icekit/messages.html' %}
{% endblock %}
{% block content %}{% endblock %}
{% endblock %}
{% if request.IS_DRAFT %}
{% block preview_ribbon %}
{% include 'icekit/partials/preview_link.html' with obj=page %}
{% endblock preview_ribbon %}
{% endif %}
{% block body_js %}
{# JS files hosted externally #}
{% block external_js %}{% endblock %}
{# Base JS files #}
{% compress js file %}
{% block base_js %}
<script src="{% static 'icekit/bower_components/jquery/dist/jquery.min.js' %}"></script>
<script src="{% static 'icekit/bower_components/icekit/js/link_share.js' %}"></script>
{% endblock %}
{% endcompress %}
{# Extra JS files - section/page specific, etc #}
{% compress js file %}
{% block js %}{% endblock %}
{% endcompress %}
{% if ICEKIT_SHARE_USERNAME and ICEKIT_SHARE_KEY %}
<script>
window.ICEKIT_SHARE_USERNAME = '{{ ICEKIT_SHARE_USERNAME }}';
window.ICEKIT_SHARE_KEY = '{{ ICEKIT_SHARE_KEY }}';
</script>
{% endif %}
{% endblock %}
</body>
</html>