diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-12 10:52:04 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-12 10:52:04 +0200 |
commit | f0e25c71e148758a76ee8d4807aa1262f25edc5d (patch) | |
tree | 071fb6fe2798aa6a91e25a016609d161ffb567bf /scripts/genposts | |
parent | fe397455cb985f1f704dcb684af14df50c054294 (diff) |
sort posts in posts.json
Diffstat (limited to 'scripts/genposts')
-rwxr-xr-x | scripts/genposts | 6 |
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 + |