itsdrike.com/scripts/build.sh

17 lines
388 B
Bash
Raw Normal View History

2021-08-24 18:27:52 +00:00
source ./scripts/common.sh
#!/usr/bin/env sh
rm -rf "$STATIC_BUILD"
rm -rf "$OUTPUT_DIR"
2021-08-25 08:43:25 +00:00
mkdir -p "$STATIC_BUILD"
2021-08-24 18:27:52 +00:00
cp -r "$STATIC_SRC/img" "$STATIC_BUILD/img"
cp -r "$STATIC_SRC/js" "$STATIC_BUILD/js"
cp -r "$STATIC_SRC/css" "$STATIC_BUILD/css"
cp -r "$STATIC_SRC/scss" "$STATIC_BUILD/scss"
hugo gen chromastyles --style=monokai > "$STATIC_BUILD/css/highlight.css"
hugo -vDEF --gc $@