Skip to content

Commit 4cccb3d

Browse files
committed
feat(human.json): generate from data file
1 parent 74780ab commit 4cccb3d

File tree

5 files changed

+41
-43
lines changed

5 files changed

+41
-43
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build:
2424
runs-on: ubuntu-latest
2525
env:
26-
HUGO_VERSION: 0.147.7
26+
HUGO_VERSION: 0.158.0
2727
steps:
2828
- name: Install Hugo CLI
2929
run: |

config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ outputs:
8282
home:
8383
- HTML
8484
- JSON
85+
- humanjson
8586
section:
8687
- HTML
8788
- RSS
@@ -104,6 +105,12 @@ outputFormats:
104105
baseName: feed
105106
rel: alternate
106107
isPlainText: true
108+
humanjson:
109+
mediaType: application/json
110+
baseName: human
111+
rel: human-json
112+
isPlainText: true
113+
root: true
107114

108115
security:
109116
http:

data/vouches.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- url: https://food.foosel.net
2+
date: "2026-03-14"
3+
- url: https://chaos.social/@foosel
4+
date: "2026-03-14"
5+
- url: https://octoprint.org
6+
date: "2026-03-14"
7+
- url: https://sethmlarson.dev
8+
date: "2026-03-14"
9+
- url: https://hynek.me
10+
date: "2026-03-16"
11+
- url: https://jugmac00.github.io
12+
date: "2026-03-16"
13+
- url: https://www.judy.co.uk
14+
date: "2026-03-16"
15+
- url: https://www.paulox.net
16+
date: "2026-03-16"
17+
- url: https://leah.is
18+
date: "2026-03-20"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.1.1",
3+
"url": {{ .Site.BaseURL | jsonify }},
4+
"vouches": [
5+
{{- range $index, $vouch := hugo.Data.vouches }}
6+
{{- with $vouch }}
7+
{{- if $index }},{{end}}
8+
{
9+
"url": {{ .url | jsonify }},
10+
"vouched_at": {{ .date | jsonify }}
11+
}
12+
{{- end }}
13+
{{- end }}
14+
]
15+
}

static/human.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)