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