/
base.j2
97 lines (75 loc) · 3.57 KB
/
base.j2
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
<!DOCTYPE html>
<html lang="en">
<head>
{% block starthead %}{% endblock starthead %}
<meta charset="{{ resource.meta.charset }}">
<title>{% block title %}{{ resource.meta.title }}{% endblock %} | {{ site_title }}</title>
<meta name="description" content="{{ resource.meta.description }}">
<meta name="author" content="{{ resource.meta.author }}">
{# Le HTML5 shim, for IE6-8 support of HTML elements #}
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block basecss %}
<link href="{{ media_url('css/bootstrap.css') }}" rel="stylesheet">
<link href="{{ media_url('css/style.css') }}" rel="stylesheet">
{% endblock basecss %}
{% block css %}{% endblock %}
{% block favicons %}
{# Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references #}
<link rel="shortcut icon" href="{{ media_url('img/favicon.ico') }}">
<link rel="apple-touch-icon" href="{{ media_url('img/apple-touch-icon.png') }}">
<link rel="apple-touch-icon" sizes="72x72" href="{{ media_url('img/appleimgim-touch-icon-72x72.png') }}">
<link rel="apple-touch-icon" sizes="114x114" href="{{ media_url('img/apple-touch-icon-114x114.png') }}">
{% endblock favicons %}
{% block headjs %}
{% endblock headjs %}
{% block endhead %}{% endblock endhead %}
{% block analytics %}
{% include "analytics.j2" %}
{% endblock analytics %}
</head>
<body class="{{ resource.meta.id if resource.meta.id else resource.slug }}">
{% block body %}
<div class="container" id="top">
{% block container %}
<div class="content">
{# This is where the bulk of the content will go #}
{% block content %}
{% endblock %}
</div>
<footer>
{% block footer %}
<p>Created by <a href="{{ author.url }}">{{ author.name }}</a></p>
{% endblock footer %}
</footer>
{% endblock container %}
</div> <!-- /container -->
{% endblock body %}
{% block js %}
{# Javascript at the bottom for fast page loading #}
{% block jquery %}
{# Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary #}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write('<script src="{{ media_url('js/libs/jquery-1.5.1.min.js.js') }}">\x3C/script>')</script>
{% endblock jquery %}
{% block bootstrap_scripts %}
{# Uncomment any of these lines to enable that plugin on your site #}
{# <script src="{{ media_url('js/libs/bootstrap-alerts.js') }}"></script>#}
{# <script src="{{ media_url('js/libs/bootstrap-buttons.js') }}"></script>#}
{# <script src="{{ media_url('js/libs/bootstrap-dropdown.js') }}"></script>#}
{# <script src="{{ media_url('js/libs/bootstrap-modal.js') }}"></script>#}
{# <script src="{{ media_url('js/libs/bootstrap-popover.js') }}"></script>#}
{# <script src="{{ media_url('js/libs/bootstrap-scrollspy.js') }}"></script>#}
{# <script src="{{ media_url('js/libs/bootstrap-tabs.js') }}"></script>#}
{# <script src="{{ media_url('js/libs/bootstrap-twipsy.js') }}"></script>#}
{% endblock bootstrap_scripts %}
{% block scripts %}
{% endblock scripts %}
<!--[if lt IE 7 ]>
<script src="{{ media_url('js/libs/dd_belatedpng.js') }}"></script>
<script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
<![endif]-->
{% endblock js %}
</body>
</html>