diff --git a/gsite.sh b/gsite.sh new file mode 100755 index 0000000..6689bdd --- /dev/null +++ b/gsite.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -euo pipefall + +wow=$(shuf -n 1 wow.txt) +commit_message=$(git log -1 --pretty=%s) +date=$(date --iso-8601=seconds) + +mkdir -p public + +cat > public/index.html < + + + + Commit words of wisdom + + +

Commit words of wisdom

+

${wow}

+

Latest commit: ${commit_message}

+

Generated: ${date}

+ + +EOF