From fd2f3f6d9606c3bbe65add5b1828747c79f2906c Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Fri, 22 Jun 2018 11:58:10 -0700 Subject: [PATCH 1/2] Change baseurl for dev --- gulpfile.babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 3d3b5943844..ce333e9fff1 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -66,7 +66,7 @@ gulp.task('hugo-staging', (cb) => { }); gulp.task('hugo-dev', (cb) => { - return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL=http://localhost:9001'], { stdio: 'inherit' }).on('close', (/* code */) => { + return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL='], { stdio: 'inherit' }).on('close', (/* code */) => { browserSync.reload(); cb(); }); From ceececcd349331628c6f382617b0d69b309158fb Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Fri, 22 Jun 2018 15:49:38 -0700 Subject: [PATCH 2/2] Only show "On this page" if there are links to show --- layouts/_default/list.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c7e31123e75..2d702763752 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -92,11 +92,13 @@
{{ partial "page-edit.html" . }}
- - + {{ with .TableOfContents }} + + + {{ end }} {{ end }}