summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-28 18:29:55 +0100
committerVolpeon <git@volpeon.ink>2020-12-28 18:29:55 +0100
commit2a9ce387a57100306149ae1998b1c9b0e6871678 (patch)
tree97c6452e304d7c915a0570a6d95f819044945a56 /scripts
parentImproved CSS vars and scopes (diff)
downloadvolpeon.ink-2a9ce387a57100306149ae1998b1c9b0e6871678.tar.gz
volpeon.ink-2a9ce387a57100306149ae1998b1c9b0e6871678.tar.bz2
volpeon.ink-2a9ce387a57100306149ae1998b1c9b0e6871678.zip
Export pages grouped by year as array instead of object
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