Added short description on how to use lektor instead of hugo to pcs-setup

This commit is contained in:
Reto Bollinger 2024-11-15 21:05:22 +01:00
parent 94aedc14e4
commit 47e02a997c

View file

@ -1,3 +1,24 @@
New Lektor Approach:
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
@ -12,3 +33,4 @@ module:
hugo new content/_index.md
hugo new content/docs/_index.md
hugo server --buildDrafts --disableFastRender