1.2 KiB
1.2 KiB
Hugo
Git
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
sudo apt install -y git-all install-info
Go
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
/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
brew install hugo
hugo version
Quickstart
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
hugo server --buildDrafts
or
hugo server -D
Publish
hugo && rsync...
> Rsync