Skip to content

Commit 7dc1798

Browse files
committed
h5bp implementation
1 parent a278f67 commit 7dc1798

File tree

8 files changed

+122
-34
lines changed

8 files changed

+122
-34
lines changed

_layouts/default.html

Lines changed: 85 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,85 @@
1-
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
<meta charset="utf-8" />
5-
<title>{{ page.title }}</title>
6-
<link rel="stylesheet" href="/css/style.css">
7-
</head>
8-
9-
<body>
10-
<header>
11-
<h1><a href="/"><img src="/images/pullrequest-logo.png" alt="Pull Request"/></a></h1>
12-
</header>
13-
<div id="main">
14-
{{ content }}
15-
</div>
16-
<footer>
17-
<small id="legal">&copy; 2011 pullrequest.org</small> -
18-
<small id="poweredby">Powered by <a href="https://github.com/mojombo/jekyll" title="Jekyll on Github">Jekyll</a></small>
19-
</footer>
20-
</body>
21-
<script>
22-
var _gaq=[["_setAccount","UA-22833612-1"],["_trackPageview"]];
23-
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
24-
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
25-
s.parentNode.insertBefore(g,s)}(document,"script"));
26-
</script>
27-
</html>
1+
<!doctype html>
2+
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
3+
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
4+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
5+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
6+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
7+
<head>
8+
<meta charset="utf-8">
9+
10+
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
11+
More info: h5bp.com/b/378 -->
12+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13+
14+
<title>.::PullRequest.org::. {{ page.title }}</title>
15+
<meta name="description" content="">
16+
<meta name="author" content="">
17+
18+
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
19+
<meta name="viewport" content="width=device-width,initial-scale=1">
20+
21+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
22+
23+
<!-- CSS: implied media=all -->
24+
<!-- CSS concatenated and minified via ant build script-->
25+
<link rel="stylesheet" href="/public/css/style.css">
26+
<!-- end CSS-->
27+
28+
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->
29+
30+
<!-- All JavaScript at the bottom, except for Modernizr / Respond.
31+
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
32+
For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
33+
<script src="js/libs/modernizr.custom.47336.js"></script>
34+
</head>
35+
36+
<body>
37+
38+
<div id="container">
39+
<header>
40+
<h1><a href="/"><img src="/public/img/pullrequest-logo.png" alt="Pull Request"/></a></h1>
41+
</header>
42+
43+
<div id="main" role="main">
44+
{{ content }}
45+
</div>
46+
47+
<footer>
48+
<small id="legal">&copy; 2011 pullrequest.org</small>
49+
<small id="poweredby">Propuls&eacute; par <a href="https://github.com/mojombo/jekyll">Jekyll</a></small>
50+
</footer>
51+
</div>
52+
53+
54+
<!-- JavaScript at the bottom for fast page loading -->
55+
56+
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
57+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
58+
<script>window.jQuery || document.write('<script src="/public/js/libs/jquery-1.6.2.min.js"><\/script>')</script>
59+
60+
61+
<!-- scripts concatenated and minified via ant build script-->
62+
<script defer src="/public/js/plugins.js"></script>
63+
<script defer src="/public/js/script.js"></script>
64+
<!-- end scripts-->
65+
66+
67+
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
68+
<script>
69+
var _gaq=[["_setAccount","UA-22833612-1"],["_trackPageview"], ['_trackPageLoadTime']];
70+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
71+
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
72+
s.parentNode.insertBefore(g,s)}(document,"script"));
73+
</script>
74+
75+
76+
77+
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
78+
chromium.org/developers/how-tos/chrome-frame-getting-started -->
79+
<!--[if lt IE 7 ]>
80+
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
81+
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
82+
<![endif]-->
83+
84+
</body>
85+
</html>

index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default
3+
title: index
4+
author: Sébastien Deleuze
5+
6+
---
7+
8+
Bienvenue gros geek.

css/style.css renamed to public/css/style.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,22 @@ pre{
152152

153153
/* - Site header ------------------------------------------------------------ */
154154

155-
body>header{
155+
body header{
156156

157157
background: #252b33;
158158
height: 96px;
159159
position:relative;
160160
z-index: 2;
161161
}
162162

163-
body>header h1{
163+
body header h1{
164164

165165
margin: auto;
166166
padding-top: 15px;
167167
width: 252px;
168168
}
169169

170-
body>header h1 a:hover{
170+
body header h1 a:hover{
171171
border:none;
172172
}
173173

@@ -260,7 +260,7 @@ a.read-more:hover{
260260
border-color: #480c28;
261261
}
262262

263-
article>header{
263+
article header{
264264

265265
margin-bottom: 24px;
266266
}
@@ -314,7 +314,7 @@ aside p{
314314
margin: 0;
315315
}
316316

317-
aside>*{
317+
aside *{
318318

319319
margin-bottom: 24px;
320320
}
@@ -342,7 +342,7 @@ aside nav{
342342
display: inline-block;
343343
}
344344

345-
#sticky-wrapper>script{
345+
#sticky-wrapper script{
346346
display: none;
347347
}
348348

@@ -420,7 +420,7 @@ aside nav{
420420

421421
/* - Footer ---------------------------------------------------------------- */
422422

423-
body>footer{
423+
body footer{
424424

425425
text-align: center;
426426
line-height: 24px;

public/img/pullrequest-logo.png

2.12 KB
Loading

public/js/libs/jquery.min.js

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/libs/modernizr.custom.47336.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/plugins.js

Whitespace-only changes.

public/js/script.js

Whitespace-only changes.

0 commit comments

Comments
 (0)