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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block windowtitle %}{{ SITENAME }}{% endblock %}</title>
<meta name="description" content="">
<meta name="author" content="{{ AUTHOR }}">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/foundation.css" />
{% if not FOUNDATION_PYGMENT_THEME %}
{% set FOUNDATION_PYGMENT_THEME = 'monokai' %}
{% endif %}
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygment/{{ FOUNDATION_PYGMENT_THEME }}.css" />
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/custom.css" />
{% if FOUNDATION_ALTERNATE_FONTS %}
<!-- GOOGLE WEB FONTS -->
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700|Droid+Sans+Mono|Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/alt-fonts.css" />
{% endif %}
<script src="{{ SITEURL }}/theme/js/modernizr.js"></script>
<!-- Feeds -->
{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
{% endif %}
{% if FEED_ALL_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
{% endif %}
{% include "analytics.html" %}
<!-- mathjax config similar to math.stackexchange -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$', '$'] ],
displayMath: [ ['$$', '$$']],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
},
messageStyle: "none",
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] }
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
</head>
<body>
<div class="off-canvas-wrap">
<div class="inner-wrap">
<!-- mobile top bar to activate nav -->
<nav class="tab-bar show-for-small">
<section class="left-small">
<a class="left-off-canvas-toggle menu-icon" ><span></span></a>
</section>
<section class="middle tab-bar-section">
<h1 class="title">{{ SITENAME|replace(' ', ' ') }}</h1>
</section>
</nav>
<!-- mobile side bar nav -->
<aside class="left-off-canvas-menu">
<ul class="off-canvas-list">
<li><a href="{{ SITEURL }}">Home</a></li>
<li><label>Categories</label></li>
{% for cat, articles in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
<li><label>Places</label></li>
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
{% if FOUNDATION_TAGS_IN_MOBILE_SIDEBAR %}
<li><label>Tags</label></li>
{% for tag, articles in tags|sort %}
<li><a href="{{ SITEURL }}/{{ tag.url|replace(' ', '-') }}">{{ tag }}</a></li>
{% endfor %}
{% endif %}
{% if MONTH_ARCHIVE_SAVE_AS %}
<li><label>Monthly Archives</label></li>
{% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %}
{% for month, articles in date_year|groupby( 'date.month' )|sort(reverse=True) %}
<li><a href="/{{ MONTH_ARCHIVE_SAVE_AS.format(date=articles[0].date) }}">{{ articles[0].date.strftime('%B') }} {{ year }} ({{ articles|count }})</a></li>
{% endfor %}
{% endfor %}
{% endif %}
<li><label>Links</label></li>
{% for name, link in SOCIAL|sort %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
</aside>
<!-- top bar nav -->
<nav class="top-bar hide-for-small-only" data-topbar>
<ul class="title-area">
<li class="name">
<h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
</li>
</ul>
<section class="top-bar-section">
<ul class="left">
{% for cat, articles in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
</section>
</nav>
<!-- Main Page Content and Sidebar -->
<section class="main-section">
<div class="row">
<!-- Main Content -->
<div class="medium-9 small-12 columns" role="content">
{% if pagetitle is defined %}
<div class="row">
<div class="small-12 columns">
<h2>{{ pagetitle }}</h2>
</div>
</div>
{% endif %}
{% block content %}{% endblock %}
</div>
<!-- End Main Content -->
<!-- Sidebar -->
<aside class="medium-3 hide-for-small-only columns">
<div class="panel">
<h5>Places</h5>
<ul class="side-nav">
{% for name, link in LINKS %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="panel">
<h5>Tags</h5>
<ul class="tag-cloud">
{% for tag in tag_cloud %}
<li><a href="/tag/{{ tag.0|lower|replace(' ', '-') }}/" class="tag-{{ tag.1 }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</div>
{% if MONTH_ARCHIVE_SAVE_AS %}
<div class="panel">
<h5>Monthly Archives</h5>
<ul class="side-nav">
{% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %}
{% for month, articles in date_year|groupby( 'date.month' )|sort(reverse=True) %}
<li><a href="/{{ MONTH_ARCHIVE_SAVE_AS.format(date=articles[0].date) }}">{{ articles[0].date.strftime('%B') }} {{ year }} ({{ articles|count }})</a></li>
{% endfor %}
{% endfor %}
</ul>
</div>
{% endif %}
<div class="panel">
<h5>Links</h5>
<ul class="side-nav">
{% for name, link in SOCIAL|sort %}
<li><a href="{{ link }}">{{ name }}</a></li>
{% endfor %}
</ul>
</div>
</aside>
<!-- End Sidebar -->
</div>
<!-- Footer -->
<footer class="row">
<div class="medium-9 small-12">
<hr/>
{% if not FOUNDATION_FOOTER_TEXT %}
{% set FOUNDATION_FOOTER_TEXT = 'Powered by <a href="http://getpelican.com">Pelican</a> and <a href="http://foundation.zurb.com/">Zurb Foundation</a>. Theme by <a href="http://hamaluik.com">Kenton Hamaluik</a>.' %}
{% endif %}
<p class="text-center">{{ FOUNDATION_FOOTER_TEXT }}</p>
</div>
</footer>
<!-- End Footer -->
</section>
<a class="exit-off-canvas"></a>
</div><!--off-canvas inner-->
</div><!--off-canvas wrap-->
<script src="{{ SITEURL }}/theme/js/jquery.js"></script>
<script src="{{ SITEURL }}/theme/js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>
|