diff options
Diffstat (limited to 'scripts/posts')
-rwxr-xr-x | scripts/posts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/posts b/scripts/posts new file mode 100755 index 0000000..12900e1 --- /dev/null +++ b/scripts/posts @@ -0,0 +1,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 +}' + |