diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index ebb58ec..bf58ec2 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -7,7 +7,7 @@ BRANCH="${BRANCH:-preview}" CLONE_DIR="${CLONE_DIR:-/blog}" echo "Cloning $REPO_URL (branch: $BRANCH)..." -git clone --depth 1 --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR" +git clone --depth 1 --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR" echo "Building site with Hugo $HUGO_VERSION..." hugo --source "$CLONE_DIR" --destination "$HUGO_DEST" --cleanDestinationDir