Documented installation of hugo-extended

This commit is contained in:
missytake 2025-07-10 20:21:11 +02:00
parent c4ae8c6a2e
commit bd85322b85
Signed by: missytake
GPG key ID: 04CC6658320518DF
3 changed files with 21 additions and 2 deletions

3
.gitignore vendored
View file

@ -11,3 +11,6 @@ hugo.linux
# Temporary lock file while building
/.hugo_build.lock
/node_modules/
package-lock.json

View file

@ -8,9 +8,15 @@ git clone https://git.0x90.space/0x90/quellcode.0x90.space
cd quellcode.0x90.space/
hugo server
npm install
npm run start
```
This opens a server at http://localhost:1313/,
where you can preview the website.
It refreshes automatically.
## Deployment
Assuming you are in the root directory of this repository, and you have cloned
@ -19,7 +25,7 @@ deploy the website with:
```
# build website
hugo
npm run build
cd ../0x90-ansible/
# create ssh_config (only necessary once)
ansible-playbook -i inventory -t init site.yml

10
package.json Normal file
View file

@ -0,0 +1,10 @@
{
"dependencies": {
"hugo-extended": "^0.147.9"
},
"scripts": {
"build": "hugo",
"build:preview": "hugo --baseURL \"${DEPLOY_PRIME_URL:-/}\" --buildDrafts --buildFuture",
"start": "hugo server"
}
}