This pagination liquid code is an extract of the public repository from http://nicolas-hoizey.com/, where you can see it in action.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ******************************************************************** | |
* Some variables | |
* ********************************************************************/ | |
/* ******************************************************************** | |
* Mandatory font face | |
* ********************************************************************/ | |
@font-face { | |
font-family: "SansitaOneRegular"; | |
src: url("font/sansitaone-webfont.woff2") format("woff2"), url("font/sansitaone-webfont.woff") format("woff"); | |
font-weight: normal; |
ATTENTION, les articles sont supposés être des redirections vers les nouvelles URL des contenus dans cette version du squelette. Modifiez le contenu de <link>
si ce n'est pas le cas.
Déposer les deux squelettes à la racine et appeler la page /?page=disqus-export
Save My Tabs is a great Firefox extension, because Firefox is great, but crashes a lot (at least mine, with hundreds of tabs).
Unfortunately, Save My Tabs doesn't have any restoration function, so you can copy/paste all URLs yourself, or try this script.
This simple Shell script for Mac OS X will launch Firefox with all URLs present in the backup file you pass as parameter:
./restore-savemytabs.sh opentabs--20160913-1900.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get device pixel ratio in dppx | |
// https://github.com/ryanve/res/blob/master/src/index.js | |
var screen_density = | |
typeof window == 'undefined' | |
? 0 | |
: +window.devicePixelRatio || | |
Math.sqrt(screen.deviceXDPI * screen.deviceYDPI) / 96 || | |
0 | |
// keep only 3 decimals: http://jsfiddle.net/AsRqx/ | |
screen_density = +(Math.round(screen_density + 'e+3') + 'e-3') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = srcset.scan(/([^, ][^ ]+)\s+([0-9]+)w/).map{ |url, size| { 'url' => url.strip, 'size' => size.to_i } }.reduce({ 'url' => '', 'size' => 0 }){ |current, new| current = new if new['size'] > current['size'] }['url'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get device pixel ratio in dppx | |
// https://github.com/ryanve/res/blob/master/res.js | |
var screen_density = | |
typeof window == 'undefined' | |
? 0 | |
: +window.devicePixelRatio || | |
Math.sqrt(screen.deviceXDPI * screen.deviceYDPI) / 96 || | |
0 | |
// keep only 3 decimals: http://jsfiddle.net/AsRqx/ | |
screen_density = +(Math.round(screen_density + 'e+3') + 'e-3') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const fs = require('fs'); | |
const path = require('path'); | |
const yfm = require('front-matter'); | |
const rootDir = './src/_comments'; | |
let comments = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Move Markdown files from previous Jekyll to new Eleventy setup | |
// Jekyll: 2018/06/15-users-do-change-font-size/2018-06-15-users-do-change-font-size.md | |
// Eleventy: 2018/06/15/users-do-change-font-size/index.md (with date added as YFM) | |
const fs = require('fs'); | |
const path = require('path'); | |
const insertLine = require('insert-line'); |