sitoctt/Scripts/Build.sh

23 lines
427 B
Bash
Raw Normal View History

#!/bin/sh
2024-08-25 17:18:20 +02:00
. "$(dirname "$(realpath "$0")")/Lib/Globals.sh"
cd "${swd}/.."
mkdir -p ./build
cd ./build
cp -r \
../archetypes ../i18n \
../content ../assets \
../layouts ../themes \
../hugo.toml ../static \
./
2024-08-25 17:18:20 +02:00
if [ "${sitocttEnv}" = GitHub ]
then cp ./layouts/partials/assetsRoot.GitHub.html ./layouts/partials/assetsRoot.html
fi
2024-08-25 17:18:20 +02:00
sh "${swd}/Translate/Get.sh"
sh "${swd}/Translate/Apply.sh"
hugo $@
cd "${owd}"