Commit 5c4cfc9
committed
Refactor release-archives page to use a custom liquid filter
The `sort_by_semver_key` filter takes a hash and sorts it by the key,
emitting an array of key-value arrays. It can take either a dotty or
underscorey semver key and sort them in descending order. They are
sorted lexicographically by left padding each version component with
zeros, so might need some work to handle SNAPSHOT if we ever want
that involved.
The filter can be configured to sort them ascending with
`sort_by_semver_key: 'asc'`.
Signed-off-by: Robert Young <[email protected]>1 parent b847458 commit 5c4cfc9
2 files changed
+37
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 7 | + | |
36 | 8 | | |
| 9 | + | |
37 | 10 | | |
38 | 11 | | |
39 | 12 | | |
40 | 13 | | |
41 | 14 | | |
42 | 15 | | |
43 | 16 | | |
44 | | - | |
45 | | - | |
| 17 | + | |
| 18 | + | |
46 | 19 | | |
47 | 20 | | |
48 | 21 | | |
49 | 22 | | |
50 | 23 | | |
51 | 24 | | |
52 | 25 | | |
53 | | - | |
54 | | - | |
| 26 | + | |
| 27 | + | |
55 | 28 | | |
56 | 29 | | |
57 | 30 | | |
| |||
0 commit comments