summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_content.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
index feb3c0d..cf0128b 100755
--- a/scripts/build_content.sh
+++ b/scripts/build_content.sh
@@ -101,7 +101,8 @@ get_subpages() {
101 101
102 collected_metadata=$(echo "$collected_metadata" \ 102 collected_metadata=$(echo "$collected_metadata" \
103 | jq ".all |= (sort_by(.date) | reverse)" \ 103 | jq ".all |= (sort_by(.date) | reverse)" \
104 | jq ".by_year[] |= (sort_by(.date) | reverse)") 104 | jq ".by_year[] |= (sort_by(.date) | reverse)" \
105 | jq ".by_year |= (to_entries | sort_by(.key) | reverse)")
105 106
106 echo "{ \"pages\": $collected_metadata }" | jq . 107 echo "{ \"pages\": $collected_metadata }" | jq .
107 fi 108 fi