screw snap and reflect change in doc

This commit is contained in:
sakrecoer 2026-08-03 10:06:41 +02:00
parent ad19cff23e
commit 311a958b91
2 changed files with 13 additions and 2 deletions

View file

@ -13,7 +13,18 @@ Nostr Relays → nak → JSON files → Hugo → Static HTML → Web Server
### 1. Install Hugo
Hugo is Static Site Generator. It should be available in your packet manager.
Hugo is Static Site Generator. This is the "engine" that will build the files you host on your server.
Download the Hugo binary from https://github.com/gohugoio/hugo/releases/latest and put it in your path (the dirty way). Note that the example bellow downloads a version that migh be outdated at the time you are reading this.
#### Example for Linux AMD64
```bash
wget https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_Linux-64bit.tar.gz
mkdir /tmp/hugo/
tar -xvzf hugo_0.164.0_Linux-64bit.tar.gz -C /tmp/hugo/
sudo mv /tmp/hugo/hugo /usr/local/bin/
chmod +x /usr/local/bin/hugo
```
### 2. Intall nak

View file

@ -14,7 +14,7 @@ echo "" >> $LOG_FILE
cd $SITE_DIR
/usr/bin/git pull >> $LOG_FILE
/usr/bin/bash fetch-and-convert.sh >> $LOG_FILE
/snap/bin/hugo build --cleanDestinationDir --minify >> $LOG_FILE
/usr/local/bin/hugo build --cleanDestinationDir --minify >> $LOG_FILE
# Optional and potentially dangerous: the generator will creates a random file name (fingerprint) for css and js to be picked up when you do changes to it. If you don't remove them, over time your directory will bloat. A new file is only created if there are changes.
# This can be dangerous because if you set the webroot wrong, you're going to nuke stuff you wasn't supposed to.