aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genposts6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/genposts b/scripts/genposts
index b6aff64..0c6bfe0 100755
--- a/scripts/genposts
+++ b/scripts/genposts
@@ -1,2 +1,6 @@
#!/bin/sh
-./posts | jq -c > ../public/posts.json
+./posts |\
+ jq ".posts |= sort_by(.date)" |\
+ jq -c \
+ > ../public/posts.json
+