diff --git a/.gitlab/hugo.template.yml b/.gitlab/hugo.template.yml index 7a66542..8a67077 100644 --- a/.gitlab/hugo.template.yml +++ b/.gitlab/hugo.template.yml @@ -1,6 +1,12 @@ variables: GIT_SUBMODULE_STRATEGY: recursive HUGO_ENV: production +spec: + inputs: + theme: + default: hugo-book + root: + default: content setup-hugo: tags: - docker @@ -8,7 +14,7 @@ setup-hugo: image: registry.gitlab.com/pages/hugo/hugo_extended:latest script: - cd ${CI_PROJECT_DIR} - - hugo --minify -t hugo-book + - hugo --minify -t $[[ inputs.theme ]] -c $[[ inputs.root ]] artifacts: paths: - public