mirror of
https://git.bolliret.ch/pcs/pcs-website
synced 2026-01-18 15:41:37 +01:00
40 lines
862 B
Text
40 lines
862 B
Text
New Lektor Approach:
|
|
|
|
build your lektor docker container:
|
|
|
|
docker build -t lektorcontainer lektor/docker
|
|
|
|
run your lektor server
|
|
|
|
docker run -it -v ${PWD}/lektor/lektordata:/opt/lektor -p 5000:5000 lektorcontainer lektor serve -h 0.0.0.0
|
|
|
|
access it with your browser:
|
|
|
|
http://localhost:5000
|
|
|
|
thats all!
|
|
|
|
|
|
If you would start from scratch you wolud delete all contents in lektordata/ and run
|
|
|
|
docker run -it -v ${PWD}/lektor/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
|
|
|