aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.babel.js
diff options
context:
space:
mode:
authorMathias Biilmann Christensen <info@mathias-biilmann.net>2017-12-07 00:21:51 -0800
committerBenaiah Mischenko <benaiah@mischenko.com>2017-12-07 01:43:09 -0800
commitd91206659bd17c190e2940a2c564f371cafc7ebc (patch)
tree3ae40f7a9c2668fb4ffaaa7fdd2746e8e5ccb267 /gulpfile.babel.js
parent3dc23ec6642f8238a9bb3e618544108cddcf2791 (diff)
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
Diffstat (limited to 'gulpfile.babel.js')
-rw-r--r--gulpfile.babel.js4
1 files changed, 4 insertions, 0 deletions
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"]);