A collection of scripts to manage content and process for static site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

9 lines
280 B

#!/bin/bash
# hugo_build.sh [17.12.2020]
# Remove ./public directory if exist then buil site for production
# Copy at root of Hugo project
# Make executable: chmod u+x hugo_build.sh
# Enjoy
output_dir=./public
[ -d "$output_dir" ] && rm -fr "$output_dir"
./bin/hugo --minify --gc