From 91ff06a9cc53601c1271794148b90240fd67eee2 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Sat, 9 Feb 2019 11:42:19 -0600 Subject: [PATCH] Added development script, fixed some layouts and set production to minify --- .gitlab-ci.yml | 2 +- run_hugo_server.sh | 10 +++++++ themes/pure/layouts/partials/head.html | 34 ++---------------------- themes/pure/layouts/partials/header.html | 27 +++++++++++++++++++ 4 files changed, 40 insertions(+), 33 deletions(-) create mode 100755 run_hugo_server.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be6e49a..76b2585 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ build-website: HUGO_BASEURL: "https://sothr.com/" script: - export HUGO_SOURCE="$PWD" - - /run.sh + - /run.sh --minify - tar -czvf website.tgz -C /output/ . only: - master diff --git a/run_hugo_server.sh b/run_hugo_server.sh new file mode 100755 index 0000000..f458b7d --- /dev/null +++ b/run_hugo_server.sh @@ -0,0 +1,10 @@ +#! /usr/bin/sh + +docker run -it \ + -e HUGO_WATCH=true \ + -e HUGO_THEME=pure \ + -e HUGO_BASEURL=http://localhost:1313/ \ + -e HUGO_DESTINATION=/src/public \ + -v ${PWD}:/src \ + -p 1313:1313 \ + sothr.com/hugo:0.54.0 $@ diff --git a/themes/pure/layouts/partials/head.html b/themes/pure/layouts/partials/head.html index 068a6b9..c97b683 100644 --- a/themes/pure/layouts/partials/head.html +++ b/themes/pure/layouts/partials/head.html @@ -1,42 +1,12 @@ + - + {{ with .Site.Params.description -}} {{- end }} {{ .Hugo.Generator }} - {{ if not .IsHome }}{{ .Title }} —{{ end }} {{ .Site.Title }} - - - diff --git a/themes/pure/layouts/partials/header.html b/themes/pure/layouts/partials/header.html index 8b13789..32d7155 100644 --- a/themes/pure/layouts/partials/header.html +++ b/themes/pure/layouts/partials/header.html @@ -1 +1,28 @@ +