File tree Expand file tree Collapse file tree 2 files changed +5
-22
lines changed
Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ deployed using [Hugo](https://gohugo.io).
55
66## Usage for content publishing
77
8+ ## Prerequisites
9+ - pip
10+
811### Setup on your computer
912
1013You need to clone this repository and run the ` bin/install ` script.
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- function eval_platform() {
6- case ${OSTYPE} in
7- " linux-gnu" )
8- echo Linux
9- ;;
10- " darwin" )
11- echo macOS
12- ;;
13- * )
14- echo Unknown platform ${OSTYPE} >&2
15- exit 1
16- ;;
17- esac
18- }
19-
205function install_hugo() {
21- PLATFORM=$( eval_platform)
22- echo -n " Installing Hugo for ${PLATFORM} ... "
23- curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest \
24- | grep -E " url.*hugo_extended.*${PLATFORM} .*tar.gz" \
25- | cut -d : -f 2,3 \
26- | tr -d \" \
27- | wget -qi - -O- | tar xzf - -C ${ROOT} /bin hugo
6+ echo -n " Installing Hugo 0.123.8... "
7+ pip install hugo==" 0.123.8"
288 echo " OK!"
299}
3010
You can’t perform that action at this time.
0 commit comments