-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbase.html
More file actions
60 lines (58 loc) · 2.27 KB
/
base.html
File metadata and controls
60 lines (58 loc) · 2.27 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>{% block title %} {{SITENAME}} {% endblock %}</title>
{% 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 %}
{% block css %}
<style>{{ asset('screen') }}</style>
<style media="print">{{ asset('print') }}</style>
{% endblock %}
{% block js %}
<script type="text/javascript">{{ asset('js') }}{% filter jsmin %}
(function(){
// https://www.paulirish.com/2009/fighting-the-font-face-fout/
// if firefox 3.5+, hide content till load (or 3 seconds) to prevent FOUT
var d = document, e = d.documentElement, s = d.createElement('style');
if (e.style.MozTransform === ''){ // gecko 1.9.1 inference
s.textContent = 'body{visibility:hidden}';
var r = document.getElementsByTagName('script')[0];
r.parentNode.insertBefore(s, r);
function f(){ s.parentNode && s.parentNode.removeChild(s); }
addEventListener('load',f,false);
setTimeout(f,3000);
}
})();
{% endfilter %}</script>
{% endblock %}
{% if article %}
<meta property="og:title" content="{{ article.title }}{% if article.excerpt %} - {{ article.excerpt }}{% endif %}"/>
<meta property="og:description" content="{% if article.excerpt %}{{ article.excerpt|e }} — {% endif %}{{ article.content|striptags|truncate(150)|e }}"/>
<meta name="description" content="{% if article.excerpt %}{{ article.excerpt|e }} — {% endif %}{{ article.content|striptags|truncate(150)|e }}"/>
{% endif %}
{% include 'googleanalytics.html' %}
</head>
<body>
<div class="container">
{% block header %}
{% include "header.html" %}
{% include "navigation.html" %}
{% endblock %}
<div class="body">
{% block content %} {% endblock %}
</div>
{% block footer %}
{% include "footer.html" %}
{% endblock %}
</div>
</body>
</html>