Skip to content

Commit

Permalink
large content update
Browse files Browse the repository at this point in the history
  • Loading branch information
lkleuver committed Oct 10, 2023
1 parent 259a796 commit 0366406
Show file tree
Hide file tree
Showing 111 changed files with 2,055 additions and 872 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.next/
public/
node_modules/
/npm-debug.log
.DS_Store
Expand Down
Empty file added .hugo_build.lock
Empty file.
20 changes: 20 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template",
"goTemplateBracketSpacing": true,
"bracketSameLine": true
}
},
{
"files": ["*.js", "*.ts"],
"options": {
"useTabs": true,
"printWidth": 120,
"singleQuote": true
}
}
]
}
56 changes: 42 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,57 @@
# Prerequisites
- golang
- https://gohugo.io
- https://just.systems/ (optional)
- npm
- node


# Setup
```sh
yarn
yarn dev
npm install
```
[open browser](http://localhost:3000)


# Local development

in a seperate terminal:
## Website
```sh
npx netlify-cms-proxy-server
hugo server
open http://localhost:1313
```

Start the website:
```sh
yarn run dev
## Local admin
Change the toplines in `./admin/config.yaml` to:

```yaml
local_backend: true
publish_mode: editorial_workflow
site_url: http://localhost:1313
backend:
name: git-gateway
branch: main
```
Run the admin
```sh
just admin
open http://localhost:8000
just admin-stop #when done

# equivalent to:

npx netlify-cms-proxy-server
python3 -m http.server --directory ./admin
```
http://localhost:3000/admin/index.html
```
or

## Test production version
```sh
cd public/admin
python -m http.server
```
just prod-test
open http://localhost:8000

# equivalent to:

python3 serve.py
```

Loading

0 comments on commit 0366406

Please sign in to comment.