From cff080637168e13a83b2b3e846e897b85cc70b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 3 Jan 2024 00:36:08 -0500 Subject: [PATCH] make things more generic/pluggable --- .gitlab-ci.yml | 3 +++ .gitlab/hugo.template.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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: