/
base.html
119 lines (108 loc) · 4.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
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
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
{% if article and article.use_schema_org %}
<head itemscope itemtype="http://schema.org/Article">
{% else %}
<head>
{% endif %}
<meta charset="utf-8">
<title>{% block title %}{{ SITENAME }}{% endblock %}</title>
<meta name="author" content="{{ AUTHOR }}">
{% if article and article.description %}
<meta name="description" content="{{ article.description }}" />
{% endif %}
{% if FEED_FEEDBURNER %}
<link href="http://feeds.feedburner.com/{{ FEED_FEEDBURNER }}" type="application/rss+xml" rel="alternate"
title="{{ SITENAME }} RSS Feed" />
{% else %}
{% if FEED_ATOM %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate"
title="{{ SITENAME }} Atom Feed" />
{% endif %}
{% if FEED_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate"
title="{{ SITENAME }} RSS Feed" />
{% endif %}
{% endif %}
{% if EXTRA_HEADER %}
{{ EXTRA_HEADER }}
{% endif %}
{% if article %}
{% if article.use_schema_org %}
<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="{{ article.title }}" />
<meta itemprop="description" content="{{ article.description }}" />
{% if article.social_image %}
<meta itemprop="image" content="{{ SITEURL }}/{{ article.social_image }}" />
{% elif SOCIAL_IMAGE %}
<meta itemprop="image" content="{{ SITEURL }}/{{ SOCIAL_IMAGE }}" />
{% endif %}
{% endif %}
{% if article.use_open_graph %}
<!-- Open Graph data -->
<meta property="og:type" content="article" />
<meta property="og:title" content="{{ article.title }}" />
{% if article.social_image %}
<meta property="og:image" content="{{ SITEURL }}/{{ article.social_image }}" />
{% elif SOCIAL_IMAGE %}
<meta property="og:image" content="{{ SITEURL }}/{{ SOCIAL_IMAGE }}" />
{% endif %}
<meta property="og:description" content="{{ article.description }}" />
{% endif %}
{% if article.use_twitter_card %}
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="{{ article.twitter_site }}" />
<meta name="twitter:title" content="{{ article.title }}" />
<meta name="twitter:description" content="{{ article.description }}" />
<meta name="twitter:creator" content="{{ article.twitter_creator }}" />
{% if article.social_image %}
<meta name="twitter:image" content="{{ SITEURL }}/{{ article.social_image }}" />
{% elif SOCIAL_IMAGE %}
<meta name="twitter:image" content="{{ SITEURL }}/{{ SOCIAL_IMAGE }}" />
{% endif %}
{% endif %}
{% endif %}
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if article and article.status == 'draft' %}
<meta name="robots" content="noindex, nofollow" />
{% endif %}
{% if FAVICON_FILENAME %}
<link href="{{ SITEURL }}/{{ FAVICON_FILENAME }}" rel="icon">
{% else %}
<link href="{{ SITEURL }}/favicon.png" rel="icon">
{% endif %}
<link href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" media="screen, projection"
rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic"
rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic"
rel="stylesheet" type="text/css">
{% if article and article.latex %}
{{ article.latex }}
{% endif %}
{% if page and page.latex %}
{{ page.latex }}
{% endif %}
</head>
<body>
<header role="banner">{% include '_includes/header.html' %}</header>
<nav role="navigation">{% include '_includes/navigation.html' %}</nav>
<div id="main">
<div id="content">
{% block content %}{% endblock %}
{% include '_includes/sidebar.html' %}
</div>
</div>
<footer role="contentinfo">{% include '_includes/footer.html' %}</footer>
<script src="{{ SITEURL }}/theme/js/modernizr-2.0.js"></script>
<script src="{{ SITEURL }}/theme/js/ender.js"></script>
<script src="{{ SITEURL }}/theme/js/octopress.js" type="text/javascript"></script>
{% include '_includes/after_footer.html' %}
</body>
</html>