# Hugo #### Git [https://git-scm.com/book/en/v2/Getting-Started-Installing-Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) ```bash sudo apt install -y git-all install-info ``` #### Go [https://go.dev/dl/](https://go.dev/dl/) ```bash sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin go version ``` #### Homebrew / Dart Sass ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/julien/.bashrc eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" brew install sass/sass/sass ``` ## Hugo [https://gohugo.io](https://gohugo.io) ```bash brew install hugo hugo version ``` #### Quickstart ```bash hugo new site quickstart cd quickstart git init git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke echo "theme = 'ananke'" >> hugo.toml hugo server ``` #### Development server ```bash hugo server --buildDrafts ``` or ```bash hugo server -D ``` #### Publish ```bash hugo && rsync... ``` > [Rsync](https://bookstack.delmar.bzh/books/selfhosted/page/rsync "Rsync")