This file contains 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
/** | |
* Supplementary blacklist for PiHole | |
* Improves coverage on https://d3ward.github.io/toolz/adblock.html | |
**/ | |
[ | |
{ | |
"id": 3, | |
"type": 1, | |
"domain": "adtech.yahooinc.com", |
This file contains 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
/** | |
* Syntax highlighting styles | |
*/ | |
$syntax-hue: 270; | |
$syntax-saturation: 4%; | |
$syntax-brightness: 15%; | |
$base: hsl($syntax-hue, $syntax-saturation, $syntax-brightness); | |
$text: hsl($syntax-hue, 9%, 87%); |
This file contains 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
:root.theme-dark { | |
/* --theme-body-background: var(--grey-80); */ | |
--theme-body-background: #2c292e !important; | |
--theme-body-background: hsl(270,4%,17%) !important; | |
--theme-sidebar-background: #202020 !important; | |
--theme-contrast-background: #efb35b !important; | |
/* Toolbar */ | |
--theme-tab-toolbar-background: #202020 !important; | |
--theme-toolbar-background: #202020 !important; |
This file contains 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
// Gulpfile.js | |
const autoprefixer = require('autoprefixer'); | |
const browserSync = require('browser-sync').create(); | |
const concat = require('gulp-concat'); | |
const cssnano = require('cssnano'); | |
const del = require('del'); | |
const gulp = require('gulp'); | |
const gutil = require('gulp-util'); | |
const imagemin = require('gulp-imagemin'); |
This file contains 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
// Delete CSS | |
gulp.task('clean:styles', function(callback) { | |
del([paths.jekyllCssFiles + 'main.css', | |
paths.siteCssFiles + 'main.css', | |
'_includes/critical.css' | |
]); | |
callback(); | |
}); | |
// Delete processed JS |
This file contains 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
// Concatenate and uglify global JS files and output the result to the | |
// appropriate location | |
gulp.task('build:scripts:global', function() { | |
return gulp.src([ | |
paths.jsFiles + '/lib' + paths.jsPattern, | |
paths.jsFiles + '/*.js' | |
]) | |
.pipe(concat('main.js')) | |
.pipe(uglify()) | |
.pipe(gulp.dest(paths.jekyllJsFiles)) |
This file contains 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
// Create and process critical CSS file to be included in head | |
gulp.task('build:styles:critical', function() { | |
return sass(paths.sassFiles + '/critical.scss', { | |
style: 'compressed', | |
trace: true, | |
loadPath: [paths.sassFiles] | |
}).pipe(postcss([ autoprefixer({ browsers: ['last 2 versions'] }), cssnano()])) | |
.pipe(gulp.dest('_includes')) | |
.on('error', gutil.log); | |
}); |
This file contains 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
// Process styles, add vendor-prefixes, minify, then | |
// output the file to the appropriate location | |
gulp.task('build:styles:main', () => { | |
return sass(paths.sassFiles + '/main.scss', { | |
style: 'compressed', | |
trace: true, | |
loadPath: [paths.sassFiles] | |
}).pipe(postcss([autoprefixer({ browsers: ['last 2 versions']}), cssnano()])) | |
.pipe(gulp.dest(paths.jekyllCssFiles)) | |
.pipe(gulp.dest(paths.siteCssFiles)) |
NewerOlder