blob: 1200546bafb5b17c37fa2cfd27b1600a4f316391 [file] [log] [blame]
Giulio Fidente44ccac72013-03-21 18:51:03 +01001<!DOCTYPE html>
2<html lang="{{ DEFAULT_LANG }}">
3
4<head>
pR0Ps26d70872014-01-31 01:42:14 -05005 {% if SERVER_LESS %}
6 <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css">
7 {% else %}
Giulio Fidente0161f712013-04-13 02:55:10 +02008 <link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/theme/css/style.less">
pR0Ps18abba62014-01-31 01:29:07 -05009 <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/1.6.1/less.min.js" type="text/javascript"></script>
pR0Ps26d70872014-01-31 01:42:14 -050010 {% endif %}
Giulio Fidente8305e742013-03-22 23:17:45 +010011
pR0Ps2fd93002015-01-11 13:46:27 -050012
13 {% if FUZZY_DATES %}
14 <script src="{{ SITEURL }}/theme/js/lw-timeago/lw-timeago.js" type="text/javascript"></script>
15 {% endif %}
16
Giulio Fidente44ccac72013-03-21 18:51:03 +010017 <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/pygments.css">
pR0Psfee52252013-12-11 11:47:26 -050018 <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
Giulio Fidente8305e742013-03-22 23:17:45 +010019
Giulio Fidente8305e742013-03-22 23:17:45 +010020 <meta charset="utf-8" />
pR0Ps8c524632013-12-11 13:04:15 -050021 <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0">
Giulio Fidente663537a2013-04-17 16:48:53 +020022 <meta name="author" content="{{ AUTHOR }}">
pR0Ps277fab82014-09-25 01:52:29 -040023 <meta name="description" content="{% block description %}Posts by {{ AUTHOR }}{% endblock %}">
Giulio Fidentea3296652013-03-28 11:30:46 +010024
pR0Ps440764b2013-12-05 16:27:12 -050025 {% if GOOGLE_PLUS_URL %}
26 <link rel="author" href="{{ GOOGLE_PLUS_URL }}?rel=author">
27 {% endif %}
28
Giulio Fidente44ccac72013-03-21 18:51:03 +010029 {% if FEED_ALL_ATOM %}
Giulio Fidente8305e742013-03-22 23:17:45 +010030 <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
Giulio Fidente44ccac72013-03-21 18:51:03 +010031 {% endif %}
32 {% if FEED_ALL_RSS %}
Giulio Fidente8305e742013-03-22 23:17:45 +010033 <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
Giulio Fidente44ccac72013-03-21 18:51:03 +010034 {% endif %}
Giulio Fidentea3296652013-03-28 11:30:46 +010035
Giulio Fidente44ccac72013-03-21 18:51:03 +010036 {% block head %}
pR0Ps02550b72013-12-17 17:03:38 -050037 <meta name="keywords" content="
38 {%- if GLOBAL_KEYWORDS -%}
39 {{ GLOBAL_KEYWORDS|join(', ') }}
pR0Ps86b80862014-09-25 02:41:07 -040040 {%- if tags -%}{{', '}}{%- endif -%}
pR0Ps02550b72013-12-17 17:03:38 -050041 {%- endif -%}
42 {{tags|join(', ', attribute='0') }}">
Giulio Fidente44ccac72013-03-21 18:51:03 +010043 {% endblock %}
Giulio Fidentea3296652013-03-28 11:30:46 +010044
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020045 <title>
46 {% block title %}{{ SITENAME }}{% endblock %}
47 </title>
Giulio Fidentefbc35fb2013-04-05 11:26:07 +020048
Giulio Fidente180d1722013-06-14 09:29:38 +020049 {% include "modules/analytics.html" %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010050</head>
51
52<body>
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010053 <aside>
Giulio Fidente44ccac72013-03-21 18:51:03 +010054 <div id="user_meta">
Giulio Fidente5c9ed782013-03-27 11:20:31 +010055 <a href="{{ SITEURL }}">
56 {% if USER_LOGO_URL %}
pR0Ps27341772013-12-20 09:20:32 -050057 <img src="{{ USER_LOGO_URL }}" alt="logo" id="logo">
Giulio Fidente5c9ed782013-03-27 11:20:31 +010058 {% endif %}
59 </a>
Carey Metcalfe9a4c7512014-09-25 13:35:55 -040060 <h2><a href="{{ SITEURL }}" class="nohover">{{ SITENAME }}</a></h2>
Giulio Fidentea6c58672013-03-30 14:55:03 +010061 <p>{{ TAGLINE }}</p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010062 <ul>
Giulio Fidente44ccac72013-03-21 18:51:03 +010063 {% for name, link in SOCIAL %}
pR0Ps433d1da2013-12-17 01:32:15 -050064
pR0Ps75ee6e02014-03-09 13:12:13 -040065 {# Attempt to normalize link URLs #}
66 {% set temp = link|lower|replace('http://', '')|replace('https://', '')|replace('www.', '') %}
67
pR0Ps433d1da2013-12-17 01:32:15 -050068 {% set class = 'fa-external-link-square' %}
69
70 {% if MANGLE_EMAILS and temp.startswith('mailto:') %}
pR0Ps23cfbaa2013-12-11 13:06:06 -050071 <li><a data-email="{{ link|reverse }}" title="You need javascript enabled to view this email" href="#" class="email" target="_blank">{{ name }}<i class="fa fa-envelope fa-lg"></i></a></li>
72 {% else %}
pR0Ps433d1da2013-12-17 01:32:15 -050073
74 {# Choosing a specific link icon #}
75 {% if temp.startswith('bitbucket.org') %}{% set class = 'fa-bitbucket' %}
76 {% elif temp.startswith('facebook.com') %}{% set class = 'fa-facebook' %}
77 {% elif temp.startswith('github.com') %}{% set class = 'fa-github' %}
78 {% elif temp.startswith('linkedin.com') %}{% set class = 'fa-linkedin' %}
79 {% elif temp.startswith('pinterest.com') %}{% set class = 'fa-pinterest' %}
80 {% elif temp.startswith('plus.google.com') %}{% set class = 'fa-google-plus' %}
81 {% elif temp.startswith('stackoverflow.com') %}{% set class = 'fa-stack-overflow' %}
82 {% elif temp.startswith('twitter.com') %}{% set class = 'fa-twitter' %}
83 {% elif temp.startswith('vimeo.com') %}{% set class = 'fa-vimeo-square' %}
84 {% elif temp.startswith('youtube.com') %}{% set class = 'fa-youtube' %}
85
pR0Ps8dbfbd82013-12-18 17:46:54 -050086 {% elif temp.endswith('.pdf') %}{% set class = 'fa-file-text' %}
87
pR0Ps433d1da2013-12-17 01:32:15 -050088 {% elif '.stackexchange.com' in temp %}{% set class = 'fa-stack-exchange' %}
89 {% elif '.tumblr.com' in temp %}{% set class = 'fa-tumblr' %}
90
91 {% elif temp.startswith('bitcoin:') %}{% set class = 'fa-bitcoin' %}
92 {% elif temp.startswith('irc:') %}{% set class = 'fa-comments' %}
93 {% elif temp.startswith('mailto:') %}{% set class = 'fa-envelope' %}
94 {% elif temp.startswith('skype:') %}{% set class = 'fa-skype' %}
pR0Ps23cfbaa2013-12-11 13:06:06 -050095 {% endif %}
pR0Ps433d1da2013-12-17 01:32:15 -050096
97 <li><a href="{{ link }}" target="_blank">{{ name }}<i class="fa {{ class }} fa-lg"></i></a></li>
pR0Ps23cfbaa2013-12-11 13:06:06 -050098 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010099 {% endfor %}
pR0Pse5f49ca2014-03-04 01:47:54 -0500100 </ul>
101 <ul>
Vincent Cheng713daa22014-02-21 04:49:15 -0800102 {% for name, link in LINKS %}
103 <li><a href="{{ link }}" target="_blank">{{ name }}<i class="fa fa-external-link-square fa-lg"></i></a></li>
104 {% endfor %}
Giulio Fidente44ccac72013-03-21 18:51:03 +0100105 </ul>
106 </div>
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100107 </aside>
Giulio Fidente44ccac72013-03-21 18:51:03 +0100108
pR0Ps6c173152013-12-11 12:13:15 -0500109 <main id="main">
Giulio Fidentea3296652013-03-28 11:30:46 +0100110 <header>
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200111 {% block header %}
pR0Ps09af9c42013-12-06 04:51:29 -0500112 <p id="header">
pR0Ps90df6e92013-12-05 15:17:52 -0500113 <a href="{{ SITEURL }}">Home</a>
114
pR0Ps8096f8f2013-12-11 12:56:28 -0500115 {% for p in pages|sort %}
pR0Ps90df6e92013-12-05 15:17:52 -0500116 {% if p.url != "index.html" %}
117 &#124; <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
118 {% endif %}
119 {% endfor %}
pR0Ps8096f8f2013-12-11 12:56:28 -0500120 {% if INDEX_SAVE_AS and INDEX_SAVE_AS != "index.html" %}
121 &#124; <a href="{{ SITEURL }}/{{ INDEX_SAVE_AS }}">Blog</a>
122 {% endif %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200123 {% if FEED_ALL_ATOM %}
124 &#124; <a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">Atom Feed</a>
125 {% endif %}
126 {% if FEED_ALL_RSS %}
127 &#124; <a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">RSS Feed</a>
128 {% endif %}
Giulio Fidentea6c58672013-03-30 14:55:03 +0100129 </p>
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200130 {% endblock header %}
pR0Ps09af9c42013-12-06 04:51:29 -0500131 {% block subheader %}
132 {% endblock subheader %}
Giulio Fidentea3296652013-03-28 11:30:46 +0100133 </header>
134
Giulio Fidente44ccac72013-03-21 18:51:03 +0100135 {% block content %}
136 {% endblock %}
Giulio Fidentea3296652013-03-28 11:30:46 +0100137
pR0Ps721949b2013-12-11 13:09:22 -0500138 {% block footer %}
139 {% endblock %}
Giulio Fidentea3296652013-03-28 11:30:46 +0100140
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100141 <div id="ending_message">
pR0Ps0a5bb622014-12-17 16:31:01 -0500142 <p>&copy; {{ AUTHOR }}. Built using <a href="http://getpelican.com" target="_blank">Pelican</a>. Theme is <a href="https://github.com/pR0Ps/pelican-subtle" target="_blank">subtle</a> by <a href="http://cmetcalfe.ca" target="_blank">Carey Metcalfe</a>. Based on <a href="https://github.com/giulivo/pelican-svbhack" target="_blank">svbhack</a> by Giulio Fidente.</p>
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100143 </div>
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100144 </main>
pR0Ps6c173152013-12-11 12:13:15 -0500145
pR0Ps2fd93002015-01-11 13:46:27 -0500146 {% block scripts %}
pR0Ps6c173152013-12-11 12:13:15 -0500147 {% if SCROLL_TO_CONTENT %}
148 <script type="text/javascript">
149 if (window.location.pathname != '/' && window.location.pathname != '/index.html'){
150 window.scroll(0, document.getElementById('main').offsetTop);
151 }
152 </script>
153 {% endif %}
pR0Ps8c524632013-12-11 13:04:15 -0500154
pR0Ps23cfbaa2013-12-11 13:06:06 -0500155 {% if MANGLE_EMAILS %}
156 <script type="text/javascript">
157 window.onload = function(){
158 var e = document.querySelectorAll(".email");
159 for (var i = 0; i < e.length; i++) {
160 e[i].href = e[i].getAttribute("data-email").split("").reverse().join("");
161 e[i].removeAttribute("data-email");
162 e[i].removeAttribute("title");
163 e[i].removeAttribute("class");
164 }
165 };
166 </script>
167 {% endif %}
168
pR0Ps8c524632013-12-11 13:04:15 -0500169 {% if FORCE_PIXELS %}
170 <script type="text/javascript">
171 var ratio = 1/window.devicePixelRatio;
172 var tag = document.getElementById("viewport")
173 if (ratio != 1 && tag != null){
174 tag.content = "width=device-width, initial-scale=" + ratio;
175 }
176 </script>
177 {% endif %}
pR0Ps2fd93002015-01-11 13:46:27 -0500178
179 {% endblock scripts %}
Giulio Fidente44ccac72013-03-21 18:51:03 +0100180</body>
181</html>