Skip to content

Commit ed5fc37

Browse files
[Fix] some ordering issues in version templates
1 parent 08c5e0b commit ed5fc37

5 files changed

Lines changed: 31 additions & 5 deletions

File tree

content/versions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ cascade:
1111

1212
Documentation for old versions. [View latest](/)
1313

14-
{{< card-list >}}
14+
{{< versions-card-list >}}

content/versions/v3.3.2/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v3.3.1
2+
title: v3.3.2
33
description: User guides, deploy docs, references, and deep dives about the
44
Rhize manufacturing data hub.
55
cascade:

content/versions/v3.3.3/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v3.3.1
2+
title: v3.3.3
33
description: User guides, deploy docs, references, and deep dives about the
44
Rhize manufacturing data hub.
55
cascade:

content/versions/v4.2.0/_index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
title: Rhize Product documentation
3-
weight: 002
2+
title: v4.2.0
43
description: User guides, deploy docs, references, and deep dives about the
54
Rhize manufacturing data hub.
65
cascade:
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{{- /* Rhize: like card-list, but orders children by title (descending) instead
2+
of weight/date, so newly archived versions (e.g. content/versions/vX.Y.Z)
3+
slot into place without needing a hand-maintained weight. */ -}}
4+
5+
{{ $pages := sort .Page.Pages "Title" "desc" }}
6+
7+
<div class="hextra-cards hx:mt-4 hx:gap-4 hx:grid not-prose"
8+
style="--hextra-cards-grid-cols: 4;">
9+
10+
{{ range $pages }}
11+
{{ if not .Params.sidebar.exclude }}
12+
{{ $icon := .Params.icon }}
13+
{{ $tags := .Params.tags }}
14+
{{ $cardParams := dict
15+
"link" .RelPermalink
16+
"title" .Title
17+
"subtitle" .Description
18+
"tag" $tags
19+
}}
20+
{{ if $icon }}
21+
{{ $cardParams = merge $cardParams (dict "icon" $icon) }}
22+
{{ end }}
23+
{{ partial "shortcodes/card.html" $cardParams }}
24+
{{ end }}
25+
{{ end }}
26+
27+
</div>

0 commit comments

Comments
 (0)