From f0e25c71e148758a76ee8d4807aa1262f25edc5d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 12 Apr 2021 10:52:04 +0200 Subject: sort posts in posts.json --- scripts/genposts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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 + -- cgit v1.2.3