From 47e02a997c3aeecba7fb122e27e71c8105f27e0c Mon Sep 17 00:00:00 2001 From: Reto Bollinger Date: Fri, 15 Nov 2024 21:05:22 +0100 Subject: [PATCH] Added short description on how to use lektor instead of hugo to pcs-setup --- pcs-setup.txt | 46 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/pcs-setup.txt b/pcs-setup.txt index f7832d5..739c65a 100644 --- a/pcs-setup.txt +++ b/pcs-setup.txt @@ -1,14 +1,36 @@ -hugo new site pcs --format yaml -cd pcs -git init -hugo mod init pcsmod -hugo mod get github.com/imfing/hextra +New Lektor Approach: -add the following to hugo.yaml: -module: - imports: - - path: github.com/imfing/hextra + build your lektor docker container: + + docker build -t lektorcontainer docker + + run your lektor server + + docker run -it -v ${PWD}/lektordata:/opt/lektor -p 5000:5000 lektorcontainer lektor serve -h 0.0.0.0 + + thats all! + + + If you would start from scratch you wolud delete all contents in lektordata/ and run + + docker run -it -v ${PWD}/lektordata:/opt/lektor lektorcontainer lektor quickstart + + + +Old Hugo Approach: + + hugo new site pcs --format yaml + cd pcs + git init + hugo mod init pcsmod + hugo mod get github.com/imfing/hextra + + add the following to hugo.yaml: + module: + imports: + - path: github.com/imfing/hextra + + hugo new content/_index.md + hugo new content/docs/_index.md + hugo server --buildDrafts --disableFastRender -hugo new content/_index.md -hugo new content/docs/_index.md -hugo server --buildDrafts --disableFastRender