mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
lint fixes
This commit is contained in:
parent
5efa3f24fd
commit
53be43f1fb
@ -4,7 +4,7 @@
|
|||||||
//=include exif-js/exif.js
|
//=include exif-js/exif.js
|
||||||
/* eslint-enable spaced-comment */
|
/* eslint-enable spaced-comment */
|
||||||
|
|
||||||
window.onload = getExif
|
window.addEventListener('load', getExif, false)
|
||||||
|
|
||||||
function getExif() {
|
function getExif() {
|
||||||
const image = document.querySelector('.hentry__teaser img')
|
const image = document.querySelector('.hentry__teaser img')
|
||||||
|
@ -22,7 +22,7 @@ import pkg from './package'
|
|||||||
const site = yaml.safeLoad(fs.readFileSync('./_config.yml'))
|
const site = yaml.safeLoad(fs.readFileSync('./_config.yml'))
|
||||||
|
|
||||||
// Load plugins
|
// Load plugins
|
||||||
const spawn = require('child_process').spawn
|
const cp = require('child_process')
|
||||||
const $ = require('gulp-load-plugins')()
|
const $ = require('gulp-load-plugins')()
|
||||||
|
|
||||||
// Custom minify
|
// Custom minify
|
||||||
@ -134,9 +134,9 @@ export const jekyll = done => {
|
|||||||
jekyllOptions = 'jekyll build --config _config.yml,_config.dev.yml --incremental --drafts --future'
|
jekyllOptions = 'jekyll build --config _config.yml,_config.dev.yml --incremental --drafts --future'
|
||||||
}
|
}
|
||||||
|
|
||||||
const jekyllInstance = spawn('bundle', ['exec', jekyllOptions], {stdio: 'inherit'})
|
const jekyll = cp.execFile('bundle', ['exec', jekyllOptions], {stdio: 'inherit'})
|
||||||
|
|
||||||
jekyllInstance.on('error', error => onError(error)).on('close', done)
|
jekyll.on('error', error => onError(error)).on('close', done)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user