diff --git a/cloudflare-build.sh b/cloudflare-build.sh new file mode 100644 index 0000000..3f4c924 --- /dev/null +++ b/cloudflare-build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$CF_PAGES_BRANCH" == "main" ]; then + hugo --minify +else + hugo -b $CF_PAGES_URL --minify +fi