mirror of
https://git.bolliret.ch/pcs/pcs-website
synced 2026-01-18 13:41:36 +01:00
50 lines
1.1 KiB
Text
50 lines
1.1 KiB
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!
|
|
|
|
|
|
building the website for deployment is:
|
|
|
|
docker run -it -v ${PWD}/lektor/lektordata:/opt/lektor -p 5000:5000 lektorcontainer lektor build -O /opt/lektor/output
|
|
|
|
deployemnt can then be found in:
|
|
|
|
lektor/lektordata/output
|
|
|
|
|
|
|
|
If you would like to start from scratch you would delete all contents in lektordata/project 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
|
|
|