/
base_template.html
70 lines (58 loc) · 1.97 KB
/
base_template.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Graphic : NPR</title>
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex" />
<link rel="shortcut icon" href="//media.npr.org/favicon.ico" />
<base target="_blank">
{% block fonts %}
<!-- Fonts -->
<script src="//apps.npr.org/dailygraphics/graphics/fonts/js/lib/webfont.js"></script>
<script>
WebFont.load({
custom: {
families: [
'Gotham SSm:n4,n7',
'Knockout 31 4r:n4'
],
urls: [
'//s.npr.org/templates/css/fonts/GothamSSm.css',
'//s.npr.org/templates/css/fonts/Knockout.css'
]
},
timeout: 10000
});
</script>
{% endblock %}
<!-- Configuration -->
<script type="text/javascript">
GOOGLE_ANALYTICS_ACCOUNT_ID = '{{ GOOGLE_ANALYTICS.ACCOUNT_ID }}';
GOOGLE_ANALYTICS_PROJECT_SLUG = '{{ slug }}';
</script>
<!-- CSS + LESS -->
{{ CSS.push('css/graphic.less') }}
{{ CSS.render('css/graphic-header.css') }}
</head>
<body>
<!-- Analytics -->
{{ JS.push('js/helpers.js') }}
{{ JS.push('js/analytics.js') }}
{{ JS.render('js/graphic-header.js') }}
{% block content %}
The child template content goes here!
{% endblock content %}
<script type="text/javascript" src="{{ PYM['pym_url'] }}"></script>
{% block js %}
{{ JS.push('js/lib/underscore.js') }}
{{ JS.push('js/lib/d3.min.js') }}
{{ JS.push('js/lib/modernizr.svg.min.js') }}
{{ JS.push('js/base.js') }}
{{ JS.push('js/graphic.js') }}
{{ JS.render('js/graphic-footer.js') }}
{% endblock js %}
</body>
</html>