forked from tarbell-project/tarbell-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_base.html
74 lines (59 loc) · 2.46 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
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}{{ title|striptags }}{% endblock title %}</title>
{% block favicon %}
<link rel="shortcut icon" href="/favicon{% if preview_mode %}-preview{% endif %}.ico" />
{% endblock %}
{% block library_css %}
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap.min.css" />
{% endblock library_css %}
{% block css %}{% endblock %}
{% block shim %}
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% endblock %}
{% block opengraph %}
<meta property="og:url" content="http://{{ ROOT_URL }}/{% if PATH != 'index.html' %}{{ PATH }}{% endif %}" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ opengraph_image }}" />
<meta property="og:description" content="{{ opengraph_description }}" />
{% endblock opengraph %}
{% block meta %}
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
{% endblock meta %}
{% block google_analytics %}
{% if GOOGLE_ANALYTICS_ID %}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS_ID }}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{% endif %}
{% endblock google_analytics %}
</head>
<body {% block bodyattrs %}class="page-{{ PATH[:-5] }}"{% endblock bodyattrs %}>
{% block nav %}
{% include "_nav.html" %}
{% endblock nav %}
{% block content %}{% endblock content %}
{% block footer %}
{% include "_footer.html" %}
{% endblock footer %}
{% block library_scripts %}
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"></script>
{% endblock library_scripts %}
{% block scripts %}{% endblock %}
</body>
</html>