blob: 3ba7ea0fc0033dbc05245a9fbecb194ac6cf4457 [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">
pR0Ps2afe4262015-01-12 19:38:09 -05009 <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.2.0/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 {% if FUZZY_DATES %}
13 <script src="{{ SITEURL }}/theme/js/lw-timeago/lw-timeago.js" type="text/javascript"></script>
14 {% endif %}
15
Giulio Fidente44ccac72013-03-21 18:51:03 +010016 <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/pygments.css">
pR0Ps45d33822015-01-11 20:59:19 -050017 <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
Giulio Fidente8305e742013-03-22 23:17:45 +010018
Giulio Fidente8305e742013-03-22 23:17:45 +010019 <meta charset="utf-8" />
pR0Psb1beb102015-01-11 22:19:11 -050020 <meta name="viewport" content="width=device-width, initial-scale=1.0">
Giulio Fidente663537a2013-04-17 16:48:53 +020021 <meta name="author" content="{{ AUTHOR }}">
pR0Ps277fab82014-09-25 01:52:29 -040022 <meta name="description" content="{% block description %}Posts by {{ AUTHOR }}{% endblock %}">
Giulio Fidentea3296652013-03-28 11:30:46 +010023
pR0Ps440764b2013-12-05 16:27:12 -050024 {% if GOOGLE_PLUS_URL %}
25 <link rel="author" href="{{ GOOGLE_PLUS_URL }}?rel=author">
26 {% endif %}
27
Giulio Fidente44ccac72013-03-21 18:51:03 +010028 {% if FEED_ALL_ATOM %}
Giulio Fidente8305e742013-03-22 23:17:45 +010029 <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 +010030 {% endif %}
31 {% if FEED_ALL_RSS %}
Giulio Fidente8305e742013-03-22 23:17:45 +010032 <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 +010033 {% endif %}
Giulio Fidentea3296652013-03-28 11:30:46 +010034
Giulio Fidente44ccac72013-03-21 18:51:03 +010035 {% block head %}
pR0Ps02550b72013-12-17 17:03:38 -050036 <meta name="keywords" content="
37 {%- if GLOBAL_KEYWORDS -%}
38 {{ GLOBAL_KEYWORDS|join(', ') }}
pR0Ps86b80862014-09-25 02:41:07 -040039 {%- if tags -%}{{', '}}{%- endif -%}
pR0Ps02550b72013-12-17 17:03:38 -050040 {%- endif -%}
41 {{tags|join(', ', attribute='0') }}">
Giulio Fidente44ccac72013-03-21 18:51:03 +010042 {% endblock %}
Giulio Fidentea3296652013-03-28 11:30:46 +010043
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020044 <title>
45 {% block title %}{{ SITENAME }}{% endblock %}
46 </title>
Giulio Fidentefbc35fb2013-04-05 11:26:07 +020047
Giulio Fidente180d1722013-06-14 09:29:38 +020048 {% include "modules/analytics.html" %}
Giulio Fidente44ccac72013-03-21 18:51:03 +010049</head>
50
51<body>
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010052 <aside>
Giulio Fidente44ccac72013-03-21 18:51:03 +010053 <div id="user_meta">
Giulio Fidente5c9ed782013-03-27 11:20:31 +010054 <a href="{{ SITEURL }}">
55 {% if USER_LOGO_URL %}
pR0Ps27341772013-12-20 09:20:32 -050056 <img src="{{ USER_LOGO_URL }}" alt="logo" id="logo">
Giulio Fidente5c9ed782013-03-27 11:20:31 +010057 {% endif %}
58 </a>
Carey Metcalfe9a4c7512014-09-25 13:35:55 -040059 <h2><a href="{{ SITEURL }}" class="nohover">{{ SITENAME }}</a></h2>
Giulio Fidentea6c58672013-03-30 14:55:03 +010060 <p>{{ TAGLINE }}</p>
Giulio Fidente44ccac72013-03-21 18:51:03 +010061 <ul>
Giulio Fidente44ccac72013-03-21 18:51:03 +010062 {% for name, link in SOCIAL %}
pR0Ps433d1da2013-12-17 01:32:15 -050063
pR0Ps75ee6e02014-03-09 13:12:13 -040064 {# Attempt to normalize link URLs #}
65 {% set temp = link|lower|replace('http://', '')|replace('https://', '')|replace('www.', '') %}
66
pR0Ps433d1da2013-12-17 01:32:15 -050067 {% set class = 'fa-external-link-square' %}
68
69 {% if MANGLE_EMAILS and temp.startswith('mailto:') %}
pR0Ps23cfbaa2013-12-11 13:06:06 -050070 <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>
71 {% else %}
pR0Ps433d1da2013-12-17 01:32:15 -050072
73 {# Choosing a specific link icon #}
pR0Ps45d33822015-01-11 20:59:19 -050074 {% if temp.startswith('bitcoin:') %}{% set class = 'fa-btc' %}
pR0Ps7bdfb592015-01-11 14:49:24 -050075 {% elif temp.startswith('irc:') %}{% set class = 'fa-comments' %}
76 {% elif temp.startswith('mailto:') %}{% set class = 'fa-envelope' %}
77 {% elif temp.startswith('skype:') %}{% set class = 'fa-skype' %}
78
79 {% elif temp.endswith('.pdf') or
80 temp.endswith('.txt') or
81 temp.endswith('.doc') or
82 temp.endswith('.docx') %}{% set class = 'fa-file-text' %}
83
84 {% elif temp.startswith('bitbucket.org') %}{% set class = 'fa-bitbucket' %}
pR0Ps45d33822015-01-11 20:59:19 -050085 {% elif temp.startswith('delicious.com') %}{% set class = 'fa-delicious' %}
86 {% elif temp.startswith('deviantart.com') %}{% set class = 'fa-deviantart' %}
pR0Ps433d1da2013-12-17 01:32:15 -050087 {% elif temp.startswith('facebook.com') %}{% set class = 'fa-facebook' %}
pR0Ps45d33822015-01-11 20:59:19 -050088 {% elif temp.startswith('flickr.com') %}{% set class = 'fa-flickr' %}
89 {% elif temp.startswith('foursquare.com') %}{% set class = 'fa-foursquare' %}
pR0Ps433d1da2013-12-17 01:32:15 -050090 {% elif temp.startswith('github.com') %}{% set class = 'fa-github' %}
pR0Ps45d33822015-01-11 20:59:19 -050091 {% elif temp.startswith('instagram.com') %}{% set class = 'fa-instagram' %}
92 {% elif temp.startswith('last.fm') %}{% set class = 'fa-lastfm' %}
pR0Ps433d1da2013-12-17 01:32:15 -050093 {% elif temp.startswith('linkedin.com') %}{% set class = 'fa-linkedin' %}
pR0Ps45d33822015-01-11 20:59:19 -050094 {% elif temp.startswith('news.ycombinator.com') %}{% set class = 'fa-hacker-news' %}
pR0Ps433d1da2013-12-17 01:32:15 -050095 {% elif temp.startswith('pinterest.com') %}{% set class = 'fa-pinterest' %}
96 {% elif temp.startswith('plus.google.com') %}{% set class = 'fa-google-plus' %}
pR0Ps45d33822015-01-11 20:59:19 -050097 {% elif temp.startswith('reddit.com') %}{% set class = 'fa-reddit' %}
98 {% elif temp.startswith('spotify.com') %}{% set class = 'fa-spotify' %}
pR0Ps433d1da2013-12-17 01:32:15 -050099 {% elif temp.startswith('stackoverflow.com') %}{% set class = 'fa-stack-overflow' %}
pR0Ps45d33822015-01-11 20:59:19 -0500100 {% elif temp.startswith('steamcommunity.com') %}{% set class = 'fa-steam' %}
101 {% elif temp.startswith('soundcloud.com') %}{% set class = 'fa-soundcloud' %}
102 {% elif temp.startswith('twitch.tv') %}{% set class = 'fa-twitch' %}
pR0Ps433d1da2013-12-17 01:32:15 -0500103 {% elif temp.startswith('twitter.com') %}{% set class = 'fa-twitter' %}
104 {% elif temp.startswith('vimeo.com') %}{% set class = 'fa-vimeo-square' %}
pR0Ps45d33822015-01-11 20:59:19 -0500105 {% elif temp.startswith('vine.co') %}{% set class = 'fa-vine' %}
pR0Ps433d1da2013-12-17 01:32:15 -0500106 {% elif temp.startswith('youtube.com') %}{% set class = 'fa-youtube' %}
pR0Ps7bdfb592015-01-11 14:49:24 -0500107
pR0Ps433d1da2013-12-17 01:32:15 -0500108 {% elif '.stackexchange.com' in temp %}{% set class = 'fa-stack-exchange' %}
109 {% elif '.tumblr.com' in temp %}{% set class = 'fa-tumblr' %}
pR0Ps7bdfb592015-01-11 14:49:24 -0500110
pR0Ps23cfbaa2013-12-11 13:06:06 -0500111 {% endif %}
pR0Ps7bdfb592015-01-11 14:49:24 -0500112
pR0Ps433d1da2013-12-17 01:32:15 -0500113 <li><a href="{{ link }}" target="_blank">{{ name }}<i class="fa {{ class }} fa-lg"></i></a></li>
pR0Ps23cfbaa2013-12-11 13:06:06 -0500114 {% endif %}
Giulio Fidente44ccac72013-03-21 18:51:03 +0100115 {% endfor %}
pR0Pse5f49ca2014-03-04 01:47:54 -0500116 </ul>
117 <ul>
Vincent Cheng713daa22014-02-21 04:49:15 -0800118 {% for name, link in LINKS %}
119 <li><a href="{{ link }}" target="_blank">{{ name }}<i class="fa fa-external-link-square fa-lg"></i></a></li>
120 {% endfor %}
Giulio Fidente44ccac72013-03-21 18:51:03 +0100121 </ul>
122 </div>
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100123 </aside>
Giulio Fidente44ccac72013-03-21 18:51:03 +0100124
pR0Ps6c173152013-12-11 12:13:15 -0500125 <main id="main">
Giulio Fidentea3296652013-03-28 11:30:46 +0100126 <header>
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200127 {% block header %}
pR0Ps09af9c42013-12-06 04:51:29 -0500128 <p id="header">
pR0Ps90df6e92013-12-05 15:17:52 -0500129 <a href="{{ SITEURL }}">Home</a>
130
pR0Ps8096f8f2013-12-11 12:56:28 -0500131 {% for p in pages|sort %}
pR0Ps90df6e92013-12-05 15:17:52 -0500132 {% if p.url != "index.html" %}
133 &#124; <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
134 {% endif %}
135 {% endfor %}
pR0Ps8096f8f2013-12-11 12:56:28 -0500136 {% if INDEX_SAVE_AS and INDEX_SAVE_AS != "index.html" %}
137 &#124; <a href="{{ SITEURL }}/{{ INDEX_SAVE_AS }}">Blog</a>
138 {% endif %}
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200139 {% if FEED_ALL_ATOM %}
140 &#124; <a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">Atom Feed</a>
141 {% endif %}
142 {% if FEED_ALL_RSS %}
143 &#124; <a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">RSS Feed</a>
144 {% endif %}
Giulio Fidentea6c58672013-03-30 14:55:03 +0100145 </p>
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200146 {% endblock header %}
pR0Psccef5bd2015-01-11 14:33:01 -0500147 {% block subheader %}{% include "modules/blogsubheader.html" %}{% endblock subheader %}
Giulio Fidentea3296652013-03-28 11:30:46 +0100148 </header>
149
Giulio Fidente44ccac72013-03-21 18:51:03 +0100150 {% block content %}
151 {% endblock %}
Giulio Fidentea3296652013-03-28 11:30:46 +0100152
pR0Ps721949b2013-12-11 13:09:22 -0500153 {% block footer %}
154 {% endblock %}
Giulio Fidentea3296652013-03-28 11:30:46 +0100155
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100156 <div id="ending_message">
pR0Ps0a5bb622014-12-17 16:31:01 -0500157 <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 +0100158 </div>
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100159 </main>
pR0Ps6c173152013-12-11 12:13:15 -0500160
pR0Ps2fd93002015-01-11 13:46:27 -0500161 {% block scripts %}
pR0Ps6c173152013-12-11 12:13:15 -0500162 {% if SCROLL_TO_CONTENT %}
163 <script type="text/javascript">
pR0Ps44f29b22015-01-11 22:20:52 -0500164 window.addEventListener('load', function(){
pR0Ps6c173152013-12-11 12:13:15 -0500165 if (window.location.pathname != '/' && window.location.pathname != '/index.html'){
166 window.scroll(0, document.getElementById('main').offsetTop);
pR0Ps44f29b22015-01-11 22:20:52 -0500167 }})
pR0Ps6c173152013-12-11 12:13:15 -0500168 </script>
169 {% endif %}
pR0Ps8c524632013-12-11 13:04:15 -0500170
pR0Ps23cfbaa2013-12-11 13:06:06 -0500171 {% if MANGLE_EMAILS %}
172 <script type="text/javascript">
pR0Ps44f29b22015-01-11 22:20:52 -0500173 window.addEventListener('load', function(){
pR0Ps23cfbaa2013-12-11 13:06:06 -0500174 var e = document.querySelectorAll(".email");
175 for (var i = 0; i < e.length; i++) {
pR0Pse0255f62015-01-11 21:00:15 -0500176 var email = e[i].getAttribute("data-email")
177 if (email){
178 e[i].href = email.split("").reverse().join("");
179 e[i].removeAttribute("data-email");
180 e[i].removeAttribute("title");
181 e[i].removeAttribute("class");
182 }
pR0Ps23cfbaa2013-12-11 13:06:06 -0500183 }
pR0Ps44f29b22015-01-11 22:20:52 -0500184 })
pR0Ps23cfbaa2013-12-11 13:06:06 -0500185 </script>
186 {% endif %}
pR0Ps2fd93002015-01-11 13:46:27 -0500187 {% endblock scripts %}
Giulio Fidente44ccac72013-03-21 18:51:03 +0100188</body>
189</html>