aboutsummaryrefslogtreecommitdiffstats
path: root/Just-Read/templates/base.html
blob: a61b22b2cb3e274a62e1014f6e70b21d299badfc (plain) (blame)
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>
<html lang="{{ HTML_LANG }}">	
<head>
	<meta charset="utf-8"/>
	<title>{% block title %}{{ SITENAME }}{%endblock%}</title>	

	{% if article and article.author %}
	<meta name="author" content="{{ article.author }}" />
	<meta name="copyright" content="{{ article.author }}" />
	{% elif page and page.author %}
	<meta name="author" content="{{ page.author }}" />
	<meta name="copyright" content="{{ page.author }}" />
	{% else %}
	<meta name="author" content="{{ AUTHOR }}" />
	<meta name="copyright" content="{{ AUTHOR }}" />
	{% endif %}

	<meta property="og:site_name" content="{{SITENAME}}" />

	{% if GOOGLE_PLUS_PROFILE_URL %}
	<link rel="author" href={{GOOGLE_PLUS_PROFILE_URL}} />
	{% endif %}
	{%if TWITTER_USERNAME %}
	<meta name="twitter:site" content="@{{TWITTER_USERNAME}}" />
	<meta name="twitter:creator" content="@{{TWITTER_USERNAME}}" />
	{% endif %}

	{%if article %}
	<meta name="twitter:card" content="summary" />
	<meta name="twitter:title" content="{{article.title}}" />
	<meta name="date" content="{{article.date}}" />
	<meta property="og:type" content="article" />
	<meta property="og:locale" content="{{article.lang}}" />
	<meta property="og:published_time" content="{{article.date}}" />
	<meta property="og:title" content="{{article.title}}" />
	<meta property="og:url" content="{{SITEURL}}/{{ article.url }}" />
	{% if  article.featured_image %}
	<meta property="og:image" content="{{ article.featured_image }}" />
	{% endif %}
	{%if DESCRIPTION %}
	<meta property="og:description" content="{{DESCRIPTION}} " />
	<meta name="description" content="{{DESCRIPTION}}" />
	{%else %}
	<meta property="og:description" content="{{article.summary|striptags}}" />
	<meta name="description" content="{{article.summary|striptags}}" />
	{% endif %}
	{%if FACEBOOK_PROFILE_URL %}
	<meta property="article:author" content="{{FACEBOOK_PROFILE_URL}}" />
	{% endif %}
	{% endif %}

	<meta name="HandheldFriendly" content="True" />
	<meta name="MobileOptimized" content="320" />
	<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0" />
	<link rel="shortcut icon" href="{{ SITEURL }}/favicon.ico" type="image/x-icon" />
	<link rel="icon" href="{{ SITEURL }}/favicon.ico" type="image/x-icon" />
	<link href='https://fonts.googleapis.com/css?family=Droid+Sans:700,400|Droid+Sans+Mono' rel='stylesheet' type='text/css' />
	<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
		
	<!--[if lt IE 9]>
		<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	
	{% block scripts %}
	{% endblock %}
	{% if FEED_ATOM %}
	<link href="{{ SITEURL }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
	{% endif %}
	{% if FEED_RSS %}
	<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
	{% endif %}
</head>
	
<body>		
	<header class="clearfix" role="banner">
		<div class="wrapper">
			<h1 class="huge"><a href="{{ SITEURL }}">{{ SITENAME }}</a></h1>
		</div>
	</header>
	
	{% block content %}
	{% endblock %}
	
		
<footer class="clearfix">
	<div class="wrapper pages">
		<ul class="nav">
		{% for p in pages %}
			<li><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
		{% endfor %}
			<li><a href="{{ SITEURL }}/archives.html">Archive</a></li>
		</ul>
	</div>
	
	<div class="copy wrapper">
		<ul class="social">
			{% for name, link in SOCIAL %}
			<li><a href="{{ link }}">{{ name }}</a></li>
			{% endfor %}
		</ul>
	
		<p role="contentinfo">{% if FOOTERTEXT %}
		{{ FOOTERTEXT }}
		{% else %}
		© 2017 {{ AUTHOR }}
		{% endif %}<br>
		Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">Pelican</a>.</p>
	</div>
</footer>
	{% if GOOGLE_ANALYTICS %}	
	<script>
	  var _gaq=[['_setAccount','{{ GOOGLE_ANALYTICS }}'],['_trackPageview']];
	  (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
	  g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
	  s.parentNode.insertBefore(g,s)}(document,'script'));
	</script>
	{% endif %}
</body>
</html>