From be98c1d9dd5f4927fc3b319a9d2d81bc4e33e14b Mon Sep 17 00:00:00 2001 From: BlueFox Date: Tue, 8 Apr 2025 19:02:22 +0200 Subject: [PATCH] Added info in README about how to run it locally --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9e9ae8..ea9f981 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,14 @@ git clone --recurse-submodules https://git.privacynerd.de/git.privacynerd.de/blo cd blog ``` -## Building +## Running & Building -To build, just run the below command. It will generate a new html in a fresh public folder. +To build or run, just use one of the commands below. It will generate a new html in a fresh public folder. + +> IMPORTANT! You have to be in the root of this repository to proceed. Executing one of the below commands will delete the `public` folder (to allow for a really fresh build). ```sh +rm -r public/ && hugo server --bind 127.0.0.1 -b http://127.0.0.1/ --minify --openBrowser --appendPort --printI18nWarnings rm -r public/ && hugo build --minify --printI18nWarnings ```