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 @@ +