aboutsummaryrefslogtreecommitdiff
path: root/scripts/posts
blob: 12900e1fb146caafd62e98d9fdf99ba0b8f399dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

postsmeta=$( find ../posts \
	-name "*.md" \
	-type f \
	-exec ./postinfo {} \; |\
	jq -s '.')

jq -n \
	--argjson valid_tags "$(./tags)" \
	--argjson posts "$postsmeta" \
'{
	"valid_tags": $valid_tags,
	"posts": $posts
}'