From d91206659bd17c190e2940a2c564f371cafc7ebc Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Christensen Date: Thu, 7 Dec 2017 00:21:51 -0800 Subject: Update hugo and content structure; add home page to CMS This updates to hugo v0.31 It also adapts the content model to follow the convention for sections with _index.md files and makes the home page a fully editable section --- gulpfile.babel.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gulpfile.babel.js') diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 4bc694a..a93dc8a 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -17,6 +17,10 @@ const browserSync = BrowserSync.create(); const hugoBin = `./bin/hugo.${process.platform === "win32" ? "exe" : process.platform}`; const defaultArgs = ["-d", "../dist", "-s", "site"]; +if (process.env.DEBUG) { + defaultArgs.unshift("--debug") +} + gulp.task("hugo", (cb) => buildSite(cb)); gulp.task("hugo-preview", (cb) => buildSite(cb, ["--buildDrafts", "--buildFuture"])); gulp.task("build", ["css", "js", "cms-assets", "hugo"]); -- cgit v1.3