overkyll-jekyll-theme 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +2 -2
- data/_includes/base.scss +10 -0
- data/_includes/favicons.html +20 -0
- data/_includes/head.html +26 -0
- data/_includes/header.html +21 -0
- data/_includes/icon-github.html +1 -0
- data/_includes/icon-github.svg +1 -0
- data/_includes/icon-twitter.html +1 -0
- data/_includes/icon-twitter.svg +1 -0
- data/_includes/loadCSS.js +62 -0
- data/_includes/localfont.js +1 -0
- data/_includes/pagination.html +22 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +22 -0
- data/_layouts/page.html +13 -0
- data/_layouts/post.html +12 -0
- data/_sass/base/_base.scss +141 -0
- data/_sass/base/_font.scss +125 -0
- data/_sass/base/_layout.scss +59 -0
- data/_sass/base/_normalize.scss +424 -0
- data/_sass/config/_colors.scss +61 -0
- data/_sass/config/_mediaqueries.scss +102 -0
- data/_sass/config/_typography.scss +154 -0
- data/_sass/generic/_broken-images.scss +36 -0
- data/_sass/generic/_normalize-opentype.scss +112 -0
- data/_sass/generic/_print.scss +44 -0
- data/_sass/generic/_syntax-highlighting.scss +72 -0
- data/_sass/object/_header.scss +89 -0
- data/_sass/object/_pagination.scss +63 -0
- data/_sass/object/_posts.scss +26 -0
- data/_sass/overkyll.scss +25 -0
- data/_sass/tool/_utilities.scss +110 -0
- data/assets/css/font.css +1 -0
- data/assets/favicons/android-chrome-192x192.png +0 -0
- data/assets/favicons/android-icon-144x144.png +0 -0
- data/assets/favicons/android-icon-192x192.png +0 -0
- data/assets/favicons/android-icon-36x36.png +0 -0
- data/assets/favicons/android-icon-48x48.png +0 -0
- data/assets/favicons/android-icon-72x72.png +0 -0
- data/assets/favicons/android-icon-96x96.png +0 -0
- data/assets/favicons/apple-icon-114x114.png +0 -0
- data/assets/favicons/apple-icon-120x120.png +0 -0
- data/assets/favicons/apple-icon-144x144.png +0 -0
- data/assets/favicons/apple-icon-152x152.png +0 -0
- data/assets/favicons/apple-icon-180x180.png +0 -0
- data/assets/favicons/apple-icon-57x57.png +0 -0
- data/assets/favicons/apple-icon-60x60.png +0 -0
- data/assets/favicons/apple-icon-72x72.png +0 -0
- data/assets/favicons/apple-icon-76x76.png +0 -0
- data/assets/favicons/apple-icon-precomposed.png +0 -0
- data/assets/favicons/apple-icon.png +0 -0
- data/assets/favicons/browserconfig.xml +2 -0
- data/assets/favicons/favicon-16x16.png +0 -0
- data/assets/favicons/favicon-32x32.png +0 -0
- data/assets/favicons/favicon-96x96.png +0 -0
- data/assets/favicons/favicon.ico +0 -0
- data/assets/favicons/manifest.json +41 -0
- data/assets/favicons/ms-icon-144x144.png +0 -0
- data/assets/favicons/ms-icon-150x150.png +0 -0
- data/assets/favicons/ms-icon-310x310.png +0 -0
- data/assets/favicons/ms-icon-70x70.png +0 -0
- data/assets/fonts/Overpass-Bold-Italic.eot +0 -0
- data/assets/fonts/Overpass-Bold-Italic.svg +5449 -0
- data/assets/fonts/Overpass-Bold-Italic.ttf +0 -0
- data/assets/fonts/Overpass-Bold-Italic.woff +0 -0
- data/assets/fonts/Overpass-Bold-Italic.woff2 +0 -0
- data/assets/fonts/Overpass-Bold.eot +0 -0
- data/assets/fonts/Overpass-Bold.svg +1302 -0
- data/assets/fonts/Overpass-Bold.ttf +0 -0
- data/assets/fonts/Overpass-Bold.woff +0 -0
- data/assets/fonts/Overpass-Bold.woff2 +0 -0
- data/assets/fonts/Overpass-ExtraLight-Italic.eot +0 -0
- data/assets/fonts/Overpass-ExtraLight-Italic.svg +5437 -0
- data/assets/fonts/Overpass-ExtraLight-Italic.ttf +0 -0
- data/assets/fonts/Overpass-ExtraLight-Italic.woff +0 -0
- data/assets/fonts/Overpass-ExtraLight.eot +0 -0
- data/assets/fonts/Overpass-ExtraLight.svg +5437 -0
- data/assets/fonts/Overpass-ExtraLight.ttf +0 -0
- data/assets/fonts/Overpass-ExtraLight.woff +0 -0
- data/assets/fonts/Overpass-ExtraLight.woff2 +0 -0
- data/assets/fonts/Overpass-Italic.eot +0 -0
- data/assets/fonts/Overpass-Italic.svg +5437 -0
- data/assets/fonts/Overpass-Italic.ttf +0 -0
- data/assets/fonts/Overpass-Italic.woff +0 -0
- data/assets/fonts/Overpass-Italic.woff2 +0 -0
- data/assets/fonts/Overpass-Light-Italic.eot +0 -0
- data/assets/fonts/Overpass-Light-Italic.svg +5437 -0
- data/assets/fonts/Overpass-Light-Italic.ttf +0 -0
- data/assets/fonts/Overpass-Light-Italic.woff +0 -0
- data/assets/fonts/Overpass-Light-Italic.woff2 +0 -0
- data/assets/fonts/Overpass-Light.eot +0 -0
- data/assets/fonts/Overpass-Light.svg +5437 -0
- data/assets/fonts/Overpass-Light.ttf +0 -0
- data/assets/fonts/Overpass-Light.woff +0 -0
- data/assets/fonts/Overpass-Light.woff2 +0 -0
- data/assets/fonts/Overpass-Regular.eot +0 -0
- data/assets/fonts/Overpass-Regular.svg +1302 -0
- data/assets/fonts/Overpass-Regular.ttf +0 -0
- data/assets/fonts/Overpass-Regular.woff +0 -0
- data/assets/fonts/Overpass-Regular.woff2 +0 -0
- data/assets/fonts/recommended.css +98 -0
- data/assets/js/instantclick.min.js +13 -0
- metadata +104 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f809cafb60c8d23b7b2e9ffaf55985ca3805104
|
4
|
+
data.tar.gz: f860f5e3d3073e9cda8106f20af4749b76e478b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d2e6daf3579a0f3907a2b76bed1ee158cdeb1c88ff8ebecd9da76e892395bbfa0e0a3d189121c797dbf3fab72fb7b2a3ebdec1ca92f1e09e967f55af36a9e85
|
7
|
+
data.tar.gz: c9d7f32bee7de4228f08a25ea0f871656c9acf51edb78905a2f6d7ca6dec22cd9014095a695052a1f1cc5a948edcaad322645cc5a07b5ff7927d46c5e516dda4
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Bertrand Keller
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Jekyll requires Ruby so make sure Ruby is installed before you begin.
|
|
23
23
|
- Open `_config.yml` and change the line `theme: minima` to this:
|
24
24
|
- `theme: overkyll-jekyll-theme`
|
25
25
|
- Import the Overkyll CSS
|
26
|
-
- Open your `css/
|
26
|
+
- Open your `css/main.scss` and change the line `@import "minima;"` to this:
|
27
27
|
- `@import "overkyll";`
|
28
28
|
|
29
29
|
|
@@ -38,7 +38,7 @@ Jekyll requires Ruby so make sure Ruby is installed before you begin.
|
|
38
38
|
- Open `_config.yml` and change the line `theme: minima` to this:
|
39
39
|
- `theme: overkyll-jekyll-theme`
|
40
40
|
- Import the overkyll CSS
|
41
|
-
- Open your `css/
|
41
|
+
- Open your `css/main.scss` and change the line `@import "minima;"` to this:
|
42
42
|
- `@import "overkyll";`
|
43
43
|
|
44
44
|
# Jekyll 2.x Method
|
data/_includes/base.scss
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<link rel="apple-touch-icon" sizes="57x57" href="{{ site.baseurl }}/assets/favicons/apple-icon-57x57.png">
|
2
|
+
<link rel="apple-touch-icon" sizes="60x60" href="{{ site.baseurl }}/assets/favicons/apple-icon-60x60.png">
|
3
|
+
<link rel="apple-touch-icon" sizes="72x72" href="{{ site.baseurl }}/assets/favicons/apple-icon-72x72.png">
|
4
|
+
<link rel="apple-touch-icon" sizes="76x76" href="{{ site.baseurl }}/assets/favicons/apple-icon-76x76.png">
|
5
|
+
<link rel="apple-touch-icon" sizes="114x114" href="{{ site.baseurl }}/assets/favicons/apple-icon-114x114.png">
|
6
|
+
<link rel="apple-touch-icon" sizes="120x120" href="{{ site.baseurl }}/assets/favicons/apple-icon-120x120.png">
|
7
|
+
<link rel="apple-touch-icon" sizes="144x144" href="{{ site.baseurl }}/assets/favicons/apple-icon-144x144.png">
|
8
|
+
<link rel="apple-touch-icon" sizes="152x152" href="{{ site.baseurl }}/assets/favicons/apple-icon-152x152.png">
|
9
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.baseurl }}/assets/favicons/apple-icon-180x180.png">
|
10
|
+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/assets/favicons/favicon-32x32.png" sizes="32x32">
|
11
|
+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/assets/favicons/android-chrome-192x192.png" sizes="192x192">
|
12
|
+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/assets/favicons/favicon-96x96.png" sizes="96x96">
|
13
|
+
<link rel="icon" type="image/png" href="{{ site.baseurl }}/assets/favicons/favicon-16x16.png" sizes="16x16">
|
14
|
+
<link rel="manifest" href="{{ site.baseurl }}/manifest.json">
|
15
|
+
<link rel="mask-icon" href="{{ site.baseurl }}/assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
|
16
|
+
<link rel="shortcut icon" href="{{ site.baseurl }}/assets/favicons/favicon.ico">
|
17
|
+
<meta name="msapplication-TileColor" content="#000">
|
18
|
+
<meta name="msapplication-TileImage" content="{{ site.baseurl }}/assets/favicons/mstile-144x144.png">
|
19
|
+
<meta name="msapplication-config" content="{{ site.baseurl }}/browserconfig.xml">
|
20
|
+
<meta name="theme-color" content="#000">
|
data/_includes/head.html
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<head itemscope itemtype="http://schema.org/WebSite">
|
2
|
+
<link href="http://gmpg.org/xfn/11" rel="profile">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} RSS Feed" href="http://bertrandkeller.info/feed/"/>
|
7
|
+
|
8
|
+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
9
|
+
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
10
|
+
|
11
|
+
<style type="text/css">
|
12
|
+
{% capture include_to_scssify %}
|
13
|
+
{% include base.scss %}
|
14
|
+
{% endcapture %}
|
15
|
+
{{ include_to_scssify | scssify }}
|
16
|
+
</style>
|
17
|
+
<script>
|
18
|
+
{% include loadCSS.js %}
|
19
|
+
loadCSS("{{ "/css/main.css" | prepend: site.baseurl }}");
|
20
|
+
{% include localfont.js %}
|
21
|
+
</script>
|
22
|
+
<link rel="stylesheet" href="{{ "css/main.css" | prepend: site.baseurl }}">
|
23
|
+
<noscript><link rel="stylesheet" href="/assets/css/font.css"></noscript>
|
24
|
+
{% include favicons.html %}
|
25
|
+
|
26
|
+
</head>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<header class="site-header">
|
2
|
+
|
3
|
+
<div class="wrapper">
|
4
|
+
|
5
|
+
<div class="site-logo">
|
6
|
+
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<nav class="nav-main">
|
10
|
+
<ul>
|
11
|
+
{% for page in site.pages %}
|
12
|
+
{% if page.navigation %}
|
13
|
+
<li><a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
|
14
|
+
{% endif %}
|
15
|
+
{% endfor %}
|
16
|
+
</ul>
|
17
|
+
</nav>
|
18
|
+
|
19
|
+
</div>
|
20
|
+
|
21
|
+
</header>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/*
|
2
|
+
loadCSS: load a CSS file asynchronously.
|
3
|
+
[c]2015 @scottjehl, Filament Group, Inc.
|
4
|
+
Licensed MIT
|
5
|
+
*/
|
6
|
+
(function(w){
|
7
|
+
"use strict";
|
8
|
+
/* exported loadCSS */
|
9
|
+
w.loadCSS = function( href, before, media ){
|
10
|
+
// Arguments explained:
|
11
|
+
// `href` [REQUIRED] is the URL for your CSS file.
|
12
|
+
// `before` [OPTIONAL] is the element the script should use as a reference for injecting our stylesheet <link> before
|
13
|
+
// By default, loadCSS attempts to inject the link after the last stylesheet or script in the DOM. However, you might desire a more specific location in your document.
|
14
|
+
// `media` [OPTIONAL] is the media type or query of the stylesheet. By default it will be 'all'
|
15
|
+
var ss = w.document.createElement( "link" );
|
16
|
+
var ref;
|
17
|
+
if( before ){
|
18
|
+
ref = before;
|
19
|
+
}
|
20
|
+
else if( w.document.querySelectorAll ){
|
21
|
+
var refs = w.document.querySelectorAll( "style,link[rel=stylesheet],script" );
|
22
|
+
// No need to check length. This script has a parent element, at least
|
23
|
+
ref = refs[ refs.length - 1];
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
ref = w.document.getElementsByTagName( "script" )[ 0 ];
|
27
|
+
}
|
28
|
+
|
29
|
+
var sheets = w.document.styleSheets;
|
30
|
+
ss.rel = "stylesheet";
|
31
|
+
ss.href = href;
|
32
|
+
// temporarily set media to something inapplicable to ensure it'll fetch without blocking render
|
33
|
+
ss.media = "only x";
|
34
|
+
|
35
|
+
// Inject link
|
36
|
+
// Note: the ternary preserves the existing behavior of "before" argument, but we could choose to change the argument to "after" in a later release and standardize on ref.nextSibling for all refs
|
37
|
+
// Note: `insertBefore` is used instead of `appendChild`, for safety re: http://www.paulirish.com/2011/surefire-dom-element-insertion/
|
38
|
+
ref.parentNode.insertBefore( ss, ( before ? ref : ref.nextSibling ) );
|
39
|
+
// A method (exposed on return object for external use) that mimics onload by polling until document.styleSheets until it includes the new sheet.
|
40
|
+
ss.onloadcssdefined = function( cb ){
|
41
|
+
var defined;
|
42
|
+
for( var i = 0; i < sheets.length; i++ ){
|
43
|
+
if( sheets[ i ].href && sheets[ i ].href === ss.href ){
|
44
|
+
defined = true;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
if( defined ){
|
48
|
+
cb();
|
49
|
+
} else {
|
50
|
+
setTimeout(function() {
|
51
|
+
ss.onloadcssdefined( cb );
|
52
|
+
});
|
53
|
+
}
|
54
|
+
};
|
55
|
+
|
56
|
+
// once loaded, set link's media back to `all` so that the stylesheet applies once it loads
|
57
|
+
ss.onloadcssdefined(function() {
|
58
|
+
ss.media = media || "all";
|
59
|
+
});
|
60
|
+
return ss;
|
61
|
+
};
|
62
|
+
}(this));
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(){"use strict";function e(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function t(e){return window.localStorage&&localStorage.font_css_cache&&localStorage.font_css_cache_file===e}function n(){if(window.localStorage&&window.XMLHttpRequest)if(t(o))c(localStorage.font_css_cache);else{var n=new XMLHttpRequest;n.open("GET",o,!0),e(n,"load",function(){4===n.readyState&&(c(n.responseText),localStorage.font_css_cache=n.responseText,localStorage.font_css_cache_file=o)}),n.send()}else{var a=document.createElement("link");a.href=o,a.rel="stylesheet",a.type="text/css",document.getElementsByTagName("head")[0].appendChild(a),document.cookie="font_css_cache"}}function c(e){var t=document.createElement("style");t.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(t)}var o="/assets/css/font.css";window.localStorage&&localStorage.font_css_cache||document.cookie.indexOf("font_css_cache")>-1?n():e(window,"load",n)}();
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{% if page.previous || page.next %}
|
2
|
+
|
3
|
+
<div class="pagination">
|
4
|
+
|
5
|
+
{% if page.previous %}
|
6
|
+
<div class="left">
|
7
|
+
<a class="pagination-item" href="{{ page.previous.url }}">
|
8
|
+
{{ page.previous.title }}
|
9
|
+
</a>
|
10
|
+
</div>
|
11
|
+
{% endif %}
|
12
|
+
|
13
|
+
{% if page.next %}
|
14
|
+
<div class="right">
|
15
|
+
<a class="pagination-item" href="{{ page.next.url }}">
|
16
|
+
{{ page.next.title }}
|
17
|
+
</a>
|
18
|
+
</div>
|
19
|
+
{% endif %}
|
20
|
+
|
21
|
+
</div>
|
22
|
+
{% endif %}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.0.2
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
|
5
|
+
<!DOCTYPE html>
|
6
|
+
<html lang="fr-FR">
|
7
|
+
|
8
|
+
{% include head.html %}
|
9
|
+
|
10
|
+
<body itemscope itemtype="http://schema.org/WebPage">
|
11
|
+
|
12
|
+
{% include header.html %}
|
13
|
+
|
14
|
+
<div class="page">
|
15
|
+
<div class="wrapper">
|
16
|
+
{{ content }}
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<script src="{{ site.baseurl }}/assets/js/instantclick.min.js" data-no-instant></script>
|
20
|
+
</body>
|
21
|
+
|
22
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
////
|
2
|
+
/// Very basic style
|
3
|
+
////
|
4
|
+
|
5
|
+
html,
|
6
|
+
body {
|
7
|
+
box-sizing: border-box;
|
8
|
+
}
|
9
|
+
|
10
|
+
*,
|
11
|
+
*:before,
|
12
|
+
*:after {
|
13
|
+
box-sizing: inherit;
|
14
|
+
}
|
15
|
+
|
16
|
+
// *, :after, :before {
|
17
|
+
// -webkit-box-sizing: border-box;
|
18
|
+
// -moz-box-sizing: border-box;
|
19
|
+
// box-sizing: border-box;
|
20
|
+
// }
|
21
|
+
|
22
|
+
a {
|
23
|
+
text-decoration: underline;
|
24
|
+
color: $color-primary;
|
25
|
+
}
|
26
|
+
|
27
|
+
// a[href]:not([class]) {
|
28
|
+
// text-decoration: underline;
|
29
|
+
// color: $color-primary;
|
30
|
+
// }
|
31
|
+
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Images
|
35
|
+
*/
|
36
|
+
|
37
|
+
img {
|
38
|
+
max-width: 100%;
|
39
|
+
vertical-align: middle;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Figures
|
45
|
+
*/
|
46
|
+
|
47
|
+
figure > img {
|
48
|
+
display: block;
|
49
|
+
}
|
50
|
+
|
51
|
+
figcaption {
|
52
|
+
font-size: $small-font-size;
|
53
|
+
}
|
54
|
+
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Links
|
58
|
+
*/
|
59
|
+
|
60
|
+
a {
|
61
|
+
text-decoration: underline;
|
62
|
+
color: palette(primary);
|
63
|
+
&:visited {
|
64
|
+
color: palette(primary);
|
65
|
+
}
|
66
|
+
&:hover {
|
67
|
+
text-decoration: underline;
|
68
|
+
color: palette(primary, dark);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Lists
|
74
|
+
*/
|
75
|
+
|
76
|
+
ul,ol {
|
77
|
+
margin-bottom: $base-line;
|
78
|
+
li {
|
79
|
+
margin-bottom: 0.5rem;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Blockquotes
|
85
|
+
*/
|
86
|
+
|
87
|
+
blockquote {
|
88
|
+
padding-left: $base-line / 2;
|
89
|
+
font-size: $base-em * $ms1;
|
90
|
+
letter-spacing: -1px;
|
91
|
+
color: $grey-color;
|
92
|
+
border-left: 4px solid $grey-color;
|
93
|
+
> :last-child {
|
94
|
+
margin-bottom: 0;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Code formatting
|
101
|
+
*/
|
102
|
+
|
103
|
+
pre,
|
104
|
+
code {
|
105
|
+
font-size: 15px;
|
106
|
+
border: 1px solid $grey-color-light;
|
107
|
+
border-radius: 3px;
|
108
|
+
background-color: #eef;
|
109
|
+
}
|
110
|
+
|
111
|
+
code {
|
112
|
+
padding: 1px 5px;
|
113
|
+
}
|
114
|
+
|
115
|
+
pre {
|
116
|
+
overflow-x: scroll;
|
117
|
+
padding: 8px 12px;
|
118
|
+
> code {
|
119
|
+
padding-right: 0;
|
120
|
+
padding-left: 0;
|
121
|
+
border: 0;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
table {
|
126
|
+
width: 100%;
|
127
|
+
table-layout: fixed;
|
128
|
+
border: 1px solid #ccc;
|
129
|
+
> thead, > tbody, > tfoot {
|
130
|
+
> tr {
|
131
|
+
> th, > td {
|
132
|
+
border: 1px solid #ccc;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
> thead > tr {
|
137
|
+
> th, > td {
|
138
|
+
border-bottom-width: 2px;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|