Hosts specific configs

This commit is contained in:
2025-04-24 15:55:10 +02:00
parent 116480f93e
commit 2abf8e30cf
13 changed files with 1903 additions and 0 deletions

73
On host/SSG (Hugo).md Normal file
View File

@@ -0,0 +1,73 @@
# 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")