diff options
-rwxr-xr-x | scripts/build_content.sh | 3 | ||||
-rw-r--r-- | templates/pagelistByYear.html | 17 |
2 files changed, 10 insertions, 10 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 |
diff --git a/templates/pagelistByYear.html b/templates/pagelistByYear.html index 758d45b..972bacc 100644 --- a/templates/pagelistByYear.html +++ b/templates/pagelistByYear.html | |||
@@ -1,12 +1,11 @@ | |||
1 | $for(pages)$ | 1 | $for(pages)$ |
2 | $for(it.by_year/pairs)$ | 2 | $for(it.by_year)$ |
3 | <h2>$it.key$</h2> | 3 | <ul class="s-refs"> |
4 | <ul class="s-refs"> | 4 | $for(it.value)$ |
5 | $for(it.value)$ | 5 | <li> |
6 | <li> | 6 | <a href="$it.url_rel$">$it.date$ - $it.title$</a> |
7 | <a href="$it.url_rel$">$it.date$ - $it.title$</a> | 7 | </li> |
8 | </li> | ||
9 | $endfor$ | ||
10 | </ul> | ||
11 | $endfor$ | 8 | $endfor$ |
9 | </ul> | ||
10 | $endfor$ | ||
12 | $endfor$ | 11 | $endfor$ |