Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 128 lines (120 sloc) 4.339 kb
7bdb2b9 @vincentbernat Add 404 error pages.
authored
1 {# -*- html -*- #}
b4bbe64 @vincentbernat Initial commit.
authored
2 <!doctype html>
1ce34ed @vincentbernat css: make inline-block compatible with IE7 everywhere
authored
3 <html class="no-js" lang="{{ resource.meta.language }}">
b4bbe64 @vincentbernat Initial commit.
authored
4 <head>
0db1ba5 @vincentbernat HTML: remove uneeded self-close stuff from <head>
authored
5 <meta charset="utf-8">
222572f @vincentbernat Templates: escape most text contents
authored
6 <title>{{ resource.meta.title|e }} | {{ resource.meta.author|e }}</title>
7 <meta name="keywords" content="{{ resource.meta.keywords|e }}">
8 <meta name="author" content="{{ resource.meta.author|e }}">
0db1ba5 @vincentbernat HTML: remove uneeded self-close stuff from <head>
authored
9 <meta name="viewport" content="width=device-width,initial-scale=1.0">
8368124 @vincentbernat HTML: add an "Apple Touch" icon.
authored
10 <link rel="apple-touch-icon-precomposed" href="{{ media_url('images/l/apple-touch-icon.png') }}">
bf72bff @vincentbernat Add canonical URL
authored
11 <link rel="canonical" href="{{base}}{{ content_url(resource.url) }}">
0db1ba5 @vincentbernat HTML: remove uneeded self-close stuff from <head>
authored
12 <link rel="alternate" href="{{ content_url( resource.meta.language + '/blog/atom.xml') }}" type="application/atom+xml" title="ATOM feed">
2160077 @vincentbernat Move fonts to Google Web Fonts.
authored
13 <link rel="stylesheet"
14 href="//fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700|Droid+Sans:700|Inconsolata">
0db1ba5 @vincentbernat HTML: remove uneeded self-close stuff from <head>
authored
15 <link rel="stylesheet" href="{{ media_url('css/luffy.css') }}" type="text/css">
dee532a @vincentbernat Add resume.
authored
16 {% block stylesheets %}{% endblock %}
11e30aa @vincentbernat JS: Move modernizr out of js/libs/ since it is a custom build.
authored
17 <script src="{{ media_url('js/modernizr.js') }}"></script>
b4bbe64 @vincentbernat Initial commit.
authored
18 </head>
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
19 {% if resource.meta.class is defined %}
20 <body class="lf-{{ resource.meta.class }}">
21 {% else %}
22 <body>
23 {% endif %}
b4bbe64 @vincentbernat Initial commit.
authored
24
7bdb2b9 @vincentbernat Add 404 error pages.
authored
25 {# Navigation bar #}
b4bbe64 @vincentbernat Initial commit.
authored
26 <nav id="lf-navbar">
27 <div id="lf-homeicon">
5c21beb @vincentbernat Add a rel="author" to home page.
authored
28 <a class="lf-sprite lf-sprite-strawhat" rel="author"
a53bb73 @vincentbernat Use CSS sprite for some images.
authored
29 href="{{ content_url( resource.meta.language ) }}/"></a>
b4bbe64 @vincentbernat Initial commit.
authored
30 </div>
31 <div id="lf-menubar">
452fac4 @vincentbernat Enhance search engine.
authored
32 <form id="lf-search" action="//www.google.com/search">
eac4077 @vincentbernat css: rework a bit how the search engine is displayed
authored
33 <i id="lf-search-glass"><input type="submit" class="lf-sprite lf-sprite-search" value=""></i>
452fac4 @vincentbernat Enhance search engine.
authored
34 <input type="hidden" name="hl" value="{{ resource.meta.language }}">
4fe00bb @vincentbernat search: when using Google Search, search with the appropriate language
authored
35 <input type="hidden" name="q" value="site:vincent.bernat.im/{{ resource.meta.language }}/*">
b4bbe64 @vincentbernat Initial commit.
authored
36 <input id="lf-search-query" type="text" name="q"
222572f @vincentbernat Templates: escape most text contents
authored
37 placeholder="{{resource.meta.l10n.search|e}}" value="">
b4bbe64 @vincentbernat Initial commit.
authored
38 </form>
39 {% include "menu.j2" %}
40 </div>
41 </nav>
89e2f9f @vincentbernat search: search engine with Bing.
authored
42 <div id="lf-search-results">
43 <div id="lf-search-results-results"></div>
44 <span id="lf-search-results-close"
45 class="lf-sprite lf-sprite-slimbox-close"></span>
46 </div>
6db348e @vincentbernat CSS: use of CSS media query for small screens.
authored
47
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
48 {% include "sidebar.j2" %}
b4bbe64 @vincentbernat Initial commit.
authored
49
7bdb2b9 @vincentbernat Add 404 error pages.
authored
50 {# Pages #}
b4bbe64 @vincentbernat Initial commit.
authored
51 <div id="lf-pages">
52 <div id="lf-page-1"></div>
53 <div id="lf-page-2"></div>
54 <div id="lf-page">
b7e9821 @vincentbernat microformats: remove some useless markups
authored
55 <article>
bee9b7e @vincentbernat More microdata/microformat.
authored
56 {% block header %}
b4bbe64 @vincentbernat Initial commit.
authored
57 <header>
b7e9821 @vincentbernat microformats: remove some useless markups
authored
58 <h1>{{resource.meta.title|typogrify|e}}</h1>
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
59 {% if resource.meta.author != None %}
b7e9821 @vincentbernat microformats: remove some useless markups
authored
60 <h2>{{resource.meta.author|e}}</h2>
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
61 {% endif %}
62 {% from "macros.j2" import resource_date with context %}
63 {{ resource_date(resource) }}
b4bbe64 @vincentbernat Initial commit.
authored
64 </header>
bee9b7e @vincentbernat More microdata/microformat.
authored
65 {% endblock %}
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
66 {% block main %}
b7e9821 @vincentbernat microformats: remove some useless markups
authored
67 <div id="lf-main" role="main">
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
68 {% filter markdown|typogrify -%}
69 {% mark article -%}{% block article -%}{%- endblock %}{%- endmark %}
70 {%- endfilter %}
add3e77 @vincentbernat CSS: center images only in main article, not in comments.
authored
71 </div>
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
72 {% endblock %}
b7e9821 @vincentbernat microformats: remove some useless markups
authored
73 </article>
060f537 @vincentbernat layout: push out prev/next navigation out of the main layout
authored
74 {% include "prevnext.j2" %}
75 {% include "comments.j2" %}
b4bbe64 @vincentbernat Initial commit.
authored
76 </div>
77 </div>
b2084d6 @vincentbernat Add multilanguage stuff.
authored
78
7bdb2b9 @vincentbernat Add 404 error pages.
authored
79 {# Footer #}
b4bbe64 @vincentbernat Initial commit.
authored
80 <footer>
1ce34ed @vincentbernat css: make inline-block compatible with IE7 everywhere
authored
81 <div>
222572f @vincentbernat Templates: escape most text contents
authored
82 <h3>{{ resource.meta.l10n.otherlinks|e }}</h3>
16328ff @vincentbernat CSS: Rework a bit the footer to work better when width is small.
authored
83 <ul>
84 <li><a href="https://github.com/vincentbernat">GitHub</a></li>
85 <li><a href="http://www.linkedin.com/in/vincentbernat">LinkedIn</a></li>
86 <li><a href="http://qa.debian.org/developer.php?login=bernat">Debian</a></li>
87 <li><a href="http://delicious.com/vbernat/">Delicious</a></li>
88 <li><a href="http://twitter.com/vince2_">@vince2_</a></li>
89 </ul>
90 </div>
91
1ce34ed @vincentbernat css: make inline-block compatible with IE7 everywhere
authored
92 <div>
16328ff @vincentbernat CSS: Rework a bit the footer to work better when width is small.
authored
93 <h3>Sources</h3>
94 <ul>
95 <li>Powered by <a href="http://ringce.com/hyde">Hyde</a></li>
96 <li><a href="https://github.com/vincentbernat/www.luffy.cx">Site</a></li>
97 <li>
98 <a href="https://github.com/vincentbernat/www.luffy.cx/tree/master/content/{{ resource.relative_path }}">Page</a>
99 </li>
100 </ul>
101 </div>
bee9b7e @vincentbernat More microdata/microformat.
authored
102 <address class="vcard author">
103 © 2011 <a class="fn email" href="mailto:vincent@bernat.im">Vincent Bernat</a>
178b087 @vincentbernat HTML: replace place-holder <span>s by <i>s which is shorter
authored
104 <a class="lf-sprite lf-sprite-rss"
a53bb73 @vincentbernat Use CSS sprite for some images.
authored
105 href="{{ content_url(resource.meta.language + '/blog/atom.xml') }}">
106 &nbsp;
178b087 @vincentbernat HTML: replace place-holder <span>s by <i>s which is shorter
authored
107 </a>
b4bbe64 @vincentbernat Initial commit.
authored
108 </address>
109 </footer>
110
8ea6d14 @vincentbernat Rework javascript loading.
authored
111 {# Load remaining scripts #}
b4bbe64 @vincentbernat Initial commit.
authored
112 <script>
8ea6d14 @vincentbernat Rework javascript loading.
authored
113 yepnope([{
cd8a1fb @vincentbernat js: upgrade to jQuery 1.6.4.
authored
114 load: '//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js',
4dbb6da @vincentbernat JS: fix fallback to jQuery
authored
115 callback: function () {
116 if (!window.jQuery) {
cd8a1fb @vincentbernat js: upgrade to jQuery 1.6.4.
authored
117 yepnope({ load: '{{ media_url("js/libs/jquery-1.6.4.js") }}' });
4dbb6da @vincentbernat JS: fix fallback to jQuery
authored
118 }
119 }
8ea6d14 @vincentbernat Rework javascript loading.
authored
120 },{
a8da340 @vincentbernat JS: don't end objects with a comma, this is not allowed.
authored
121 load: '{{ media_url("js/luffy.js") }}'
8ea6d14 @vincentbernat Rework javascript loading.
authored
122 }]);
b4bbe64 @vincentbernat Initial commit.
authored
123 </script>
124
125 {% include "analytics.j2" %}
126 </body>
127 </html>
Something went wrong with that request. Please try again.