Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html lang="{{ DEFAULT_LANG }}"> |
| 3 | |
| 4 | <head> |
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame] | 5 | <link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/theme/css/style.less"> |
pR0Ps | 12bcc7f | 2013-12-05 15:55:01 -0500 | [diff] [blame] | 6 | <script src="{{ SITEURL }}/theme/js/less-1.5.0.min.js" type="text/javascript"></script> |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 7 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 8 | <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/pygments.css"> |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 9 | <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans|PT+Serif|PT+Mono"> |
pR0Ps | fee5225 | 2013-12-11 11:47:26 -0500 | [diff] [blame] | 10 | <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet"> |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 11 | |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 12 | <meta charset="utf-8" /> |
pR0Ps | 8c52463 | 2013-12-11 13:04:15 -0500 | [diff] [blame] | 13 | <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0"> |
Giulio Fidente | 663537a | 2013-04-17 16:48:53 +0200 | [diff] [blame] | 14 | <meta name="author" content="{{ AUTHOR }}"> |
| 15 | <meta name="description" content="Posts and writings by {{ AUTHOR }}"> |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 16 | |
pR0Ps | 440764b | 2013-12-05 16:27:12 -0500 | [diff] [blame] | 17 | {% if GOOGLE_PLUS_URL %} |
| 18 | <link rel="author" href="{{ GOOGLE_PLUS_URL }}?rel=author"> |
| 19 | {% endif %} |
| 20 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 21 | {% if FEED_ALL_ATOM %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 22 | <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" /> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 23 | {% endif %} |
| 24 | {% if FEED_ALL_RSS %} |
Giulio Fidente | 8305e74 | 2013-03-22 23:17:45 +0100 | [diff] [blame] | 25 | <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" /> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 26 | {% endif %} |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 27 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 28 | {% block head %} |
pR0Ps | 02550b7 | 2013-12-17 17:03:38 -0500 | [diff] [blame^] | 29 | <meta name="keywords" content=" |
| 30 | {%- if GLOBAL_KEYWORDS -%} |
| 31 | {{ GLOBAL_KEYWORDS|join(', ') }} |
| 32 | {%- if tags -%} |
| 33 | {{', '}} |
| 34 | {%- endif -%} |
| 35 | {%- endif -%} |
| 36 | {{tags|join(', ', attribute='0') }}"> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 37 | {% endblock %} |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 38 | |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 39 | <title> |
| 40 | {% block title %}{{ SITENAME }}{% endblock %} |
| 41 | </title> |
Giulio Fidente | fbc35fb | 2013-04-05 11:26:07 +0200 | [diff] [blame] | 42 | |
Giulio Fidente | 180d172 | 2013-06-14 09:29:38 +0200 | [diff] [blame] | 43 | {% include "modules/analytics.html" %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 44 | </head> |
| 45 | |
| 46 | <body> |
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 47 | <aside> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 48 | <div id="user_meta"> |
Giulio Fidente | 5c9ed78 | 2013-03-27 11:20:31 +0100 | [diff] [blame] | 49 | <a href="{{ SITEURL }}"> |
| 50 | {% if USER_LOGO_URL %} |
| 51 | <img src="{{ USER_LOGO_URL }}" alt="logo"> |
| 52 | {% else %} |
| 53 | <img src="{{ SITEURL }}/theme/images/logo.png" alt="logo"> |
| 54 | {% endif %} |
| 55 | </a> |
pR0Ps | 41bf7d3 | 2013-12-05 16:33:55 -0500 | [diff] [blame] | 56 | <h2><a href="{{ SITEURL }}" class="nohover">{{ AUTHOR }}</a></h2> |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 57 | <p>{{ TAGLINE }}</p> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 58 | <ul> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 59 | {% for name, link in LINKS %} |
pR0Ps | 433d1da | 2013-12-17 01:32:15 -0500 | [diff] [blame] | 60 | <li><a href="{{ link }}" target="_blank">{{ name }}<i class="fa fa-external-link-square fa-lg"></i></a></li> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 61 | {% endfor %} |
pR0Ps | 433d1da | 2013-12-17 01:32:15 -0500 | [diff] [blame] | 62 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 63 | {% for name, link in SOCIAL %} |
pR0Ps | 433d1da | 2013-12-17 01:32:15 -0500 | [diff] [blame] | 64 | |
| 65 | {% set temp = link|lower|replace('http://', '')|replace('https://', '') %} |
| 66 | {% set class = 'fa-external-link-square' %} |
| 67 | |
| 68 | {% if MANGLE_EMAILS and temp.startswith('mailto:') %} |
pR0Ps | 23cfbaa | 2013-12-11 13:06:06 -0500 | [diff] [blame] | 69 | <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> |
| 70 | {% else %} |
pR0Ps | 433d1da | 2013-12-17 01:32:15 -0500 | [diff] [blame] | 71 | |
| 72 | {# Choosing a specific link icon #} |
| 73 | {% if temp.startswith('bitbucket.org') %}{% set class = 'fa-bitbucket' %} |
| 74 | {% elif temp.startswith('facebook.com') %}{% set class = 'fa-facebook' %} |
| 75 | {% elif temp.startswith('github.com') %}{% set class = 'fa-github' %} |
| 76 | {% elif temp.startswith('linkedin.com') %}{% set class = 'fa-linkedin' %} |
| 77 | {% elif temp.startswith('pinterest.com') %}{% set class = 'fa-pinterest' %} |
| 78 | {% elif temp.startswith('plus.google.com') %}{% set class = 'fa-google-plus' %} |
| 79 | {% elif temp.startswith('stackoverflow.com') %}{% set class = 'fa-stack-overflow' %} |
| 80 | {% elif temp.startswith('twitter.com') %}{% set class = 'fa-twitter' %} |
| 81 | {% elif temp.startswith('vimeo.com') %}{% set class = 'fa-vimeo-square' %} |
| 82 | {% elif temp.startswith('youtube.com') %}{% set class = 'fa-youtube' %} |
| 83 | |
| 84 | {% elif '.stackexchange.com' in temp %}{% set class = 'fa-stack-exchange' %} |
| 85 | {% elif '.tumblr.com' in temp %}{% set class = 'fa-tumblr' %} |
| 86 | |
| 87 | {% elif temp.startswith('bitcoin:') %}{% set class = 'fa-bitcoin' %} |
| 88 | {% elif temp.startswith('irc:') %}{% set class = 'fa-comments' %} |
| 89 | {% elif temp.startswith('mailto:') %}{% set class = 'fa-envelope' %} |
| 90 | {% elif temp.startswith('skype:') %}{% set class = 'fa-skype' %} |
pR0Ps | 23cfbaa | 2013-12-11 13:06:06 -0500 | [diff] [blame] | 91 | {% endif %} |
pR0Ps | 433d1da | 2013-12-17 01:32:15 -0500 | [diff] [blame] | 92 | |
| 93 | <li><a href="{{ link }}" target="_blank">{{ name }}<i class="fa {{ class }} fa-lg"></i></a></li> |
pR0Ps | 23cfbaa | 2013-12-11 13:06:06 -0500 | [diff] [blame] | 94 | {% endif %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 95 | {% endfor %} |
| 96 | </ul> |
| 97 | </div> |
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 98 | </aside> |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 99 | |
pR0Ps | 6c17315 | 2013-12-11 12:13:15 -0500 | [diff] [blame] | 100 | <main id="main"> |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 101 | <header> |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 102 | {% block header %} |
pR0Ps | 09af9c4 | 2013-12-06 04:51:29 -0500 | [diff] [blame] | 103 | <p id="header"> |
pR0Ps | 90df6e9 | 2013-12-05 15:17:52 -0500 | [diff] [blame] | 104 | <a href="{{ SITEURL }}">Home</a> |
| 105 | |
pR0Ps | 8096f8f | 2013-12-11 12:56:28 -0500 | [diff] [blame] | 106 | {% for p in pages|sort %} |
pR0Ps | 90df6e9 | 2013-12-05 15:17:52 -0500 | [diff] [blame] | 107 | {% if p.url != "index.html" %} |
| 108 | | <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a> |
| 109 | {% endif %} |
| 110 | {% endfor %} |
pR0Ps | 8096f8f | 2013-12-11 12:56:28 -0500 | [diff] [blame] | 111 | {% if INDEX_SAVE_AS and INDEX_SAVE_AS != "index.html" %} |
| 112 | | <a href="{{ SITEURL }}/{{ INDEX_SAVE_AS }}">Blog</a> |
| 113 | {% endif %} |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 114 | {% if FEED_ALL_ATOM %} |
| 115 | | <a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">Atom Feed</a> |
| 116 | {% endif %} |
| 117 | {% if FEED_ALL_RSS %} |
| 118 | | <a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}">RSS Feed</a> |
| 119 | {% endif %} |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 120 | </p> |
Giulio Fidente | da4d95b | 2013-04-29 15:59:35 +0200 | [diff] [blame] | 121 | {% endblock header %} |
pR0Ps | 09af9c4 | 2013-12-06 04:51:29 -0500 | [diff] [blame] | 122 | {% block subheader %} |
| 123 | {% endblock subheader %} |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 124 | </header> |
| 125 | |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 126 | {% block content %} |
| 127 | {% endblock %} |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 128 | |
pR0Ps | 721949b | 2013-12-11 13:09:22 -0500 | [diff] [blame] | 129 | {% block footer %} |
| 130 | {% endblock %} |
Giulio Fidente | a329665 | 2013-03-28 11:30:46 +0100 | [diff] [blame] | 131 | |
Giulio Fidente | bc2f70a | 2013-03-27 15:41:07 +0100 | [diff] [blame] | 132 | <div id="ending_message"> |
pR0Ps | 1c4126a | 2013-12-05 15:52:01 -0500 | [diff] [blame] | 133 | <p>© {{ AUTHOR }}. Built using <a href="http://getpelican.com" target="_blank">Pelican</a>. Theme by Carey Metcalfe, availible on <a href="https://github.com/pR0Ps/pelican-svbhack" target="_blank">GitHub</a>. Based on <a href="https://github.com/giulivo/pelican-svbhack" target="_blank">svbhack</a> by Giulio Fidente.</p> |
Giulio Fidente | bc2f70a | 2013-03-27 15:41:07 +0100 | [diff] [blame] | 134 | </div> |
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 135 | </main> |
pR0Ps | 6c17315 | 2013-12-11 12:13:15 -0500 | [diff] [blame] | 136 | |
| 137 | {% if SCROLL_TO_CONTENT %} |
| 138 | <script type="text/javascript"> |
| 139 | if (window.location.pathname != '/' && window.location.pathname != '/index.html'){ |
| 140 | window.scroll(0, document.getElementById('main').offsetTop); |
| 141 | } |
| 142 | </script> |
| 143 | {% endif %} |
pR0Ps | 8c52463 | 2013-12-11 13:04:15 -0500 | [diff] [blame] | 144 | |
pR0Ps | 23cfbaa | 2013-12-11 13:06:06 -0500 | [diff] [blame] | 145 | {% if MANGLE_EMAILS %} |
| 146 | <script type="text/javascript"> |
| 147 | window.onload = function(){ |
| 148 | var e = document.querySelectorAll(".email"); |
| 149 | for (var i = 0; i < e.length; i++) { |
| 150 | e[i].href = e[i].getAttribute("data-email").split("").reverse().join(""); |
| 151 | e[i].removeAttribute("data-email"); |
| 152 | e[i].removeAttribute("title"); |
| 153 | e[i].removeAttribute("class"); |
| 154 | } |
| 155 | }; |
| 156 | </script> |
| 157 | {% endif %} |
| 158 | |
pR0Ps | 8c52463 | 2013-12-11 13:04:15 -0500 | [diff] [blame] | 159 | {% if FORCE_PIXELS %} |
| 160 | <script type="text/javascript"> |
| 161 | var ratio = 1/window.devicePixelRatio; |
| 162 | var tag = document.getElementById("viewport") |
| 163 | if (ratio != 1 && tag != null){ |
| 164 | tag.content = "width=device-width, initial-scale=" + ratio; |
| 165 | } |
| 166 | </script> |
| 167 | {% endif %} |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 168 | </body> |
| 169 | </html> |