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,14 +1,36 @@
hugo new site pcs --format yaml New Lektor Approach:
cd pcs
git init
hugo mod init pcsmod
hugo mod get github.com/imfing/hextra
add the following to hugo.yaml: build your lektor docker container:
module:
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: imports:
- path: github.com/imfing/hextra - path: github.com/imfing/hextra
hugo new content/_index.md hugo new content/_index.md
hugo new content/docs/_index.md hugo new content/docs/_index.md
hugo server --buildDrafts --disableFastRender hugo server --buildDrafts --disableFastRender