File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 1/usr/bin/env bash
2+
3+ main () {
4+ Hugo_VERSION=" 0.148.1"
5+
6+ export TZ=" Europe/Berlin"
7+
8+ # Install Hugo
9+ echo " Installing Hugo version $Hugo_VERSION ..."
10+ curl -LJO " https://github.com/gohugoio/hugo/releases/download/v$Hugo_VERSION /hugo_extended_$Hugo_VERSION_Linux -64bit.tar.gz"
11+ tar -xzf " hugo_extended_$Hugo_VERSION_Linux -64bit.tar
12+ cp hugo /opt/buildhome
13+ rm LICENSE.txt README.md hugo_extended_$Hugo_VERSION_Linux -64bit.tar.gz
14+
15+ echo " Hugo version $Hugo_VERSION installed successfully."
16+ echo Go: " ${go version} "
17+ echo " Hugo version: $( hugo version) "
18+ echo Node.js version: " $( node -v) "
19+
20+ echo " Clone Toha theme..."
21+ git submodule update --init --recursive
22+ git config core.quotepath false
23+
24+ echo " Building site..."
25+ hugo --gc --minify
26+ }
27+
28+ set -euo pipefail
29+ main " $@ "
Original file line number Diff line number Diff line change 1+ name = " securebitsblog"
2+ comnpatibility-date = " 2025-07-21"
3+
4+ [build ]
5+ command = " ./build.sh"
6+
7+ [assets ]
8+ directory = " ./public"
9+ not-found-handling = " 404-page"
You can’t perform that action at this time.
0 commit comments