From 311a958b9199d90806a2087a76cc03e161026579 Mon Sep 17 00:00:00 2001 From: sakrecoer Date: Mon, 3 Aug 2026 10:06:41 +0200 Subject: [PATCH] screw snap and reflect change in doc --- README.md | 13 ++++++++++++- example.deploy.sh | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 37468c7..455bbf8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/example.deploy.sh b/example.deploy.sh index b72cda1..dd17630 100755 --- a/example.deploy.sh +++ b/example.deploy.sh @@ -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.