diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7804a69..515b14c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,9 @@ include: output: assets/indices root: "." - local: "/.gitlab/hugo.template.yml" + inputs: + root: content + theme: hugo-book stages: - index diff --git a/.gitlab/hugo.template.yml b/.gitlab/hugo.template.yml index 01dbeff..9dd95e5 100644 --- a/.gitlab/hugo.template.yml +++ b/.gitlab/hugo.template.yml @@ -15,8 +15,8 @@ setup-hugo: image: registry.gitlab.com/pages/hugo/hugo_extended:latest script: - cd ${CI_PROJECT_DIR} - - ls -l content - - ls -l themes/hugo-book + - ls -l $[[ inputs.root ]] + - ls -l themes/$[[ inputs.theme ]] - hugo --minify -t $[[ inputs.theme ]] -c $[[ inputs.root ]] artifacts: paths: