Documented installation of hugo-extended
This commit is contained in:
parent
c4ae8c6a2e
commit
bd85322b85
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -11,3 +11,6 @@ hugo.linux
|
|||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
||||
|
||||
/node_modules/
|
||||
package-lock.json
|
||||
|
|
|
|||
10
README.md
10
README.md
|
|
@ -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
10
package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue