mirror of
https://git.bolliret.ch/pcs/pcs-website
synced 2026-01-18 15:01:37 +01:00
Added short description on how to use lektor instead of hugo to pcs-setup
This commit is contained in:
parent
94aedc14e4
commit
47e02a997c
1 changed files with 34 additions and 12 deletions
|
|
@ -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:
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue