2
2
{{- $components := .components -}}
3
3
4
4
{{- with $section -}}
5
+ {{ $slug := replace $section " " "-" }}
5
6
6
- {{ $slug := replace $section " " "-" }}
7
7
8
- < h2 id ="{{- $slug -}} "> {{- $section -}}</ h2 >
8
+ < h2 id ="{{- $slug -}} "> {{- $section -}}</ h2 >
9
9
10
- {{- with $components -}}
11
- < div class ="container mt-4 ">
12
- < div class ="row justify-content-start ">
13
- {{ range $index, $component := $components }}
14
- {{/* Determine license type */}}
15
- {{- $license := "Licensed" -}}
16
- {{- $licensed := .data.licensed -}}
17
- {{- $releaseNotesPath := .data.releaseNotesPath -}}
18
- {{- if not $licensed -}}
19
- {{- $license = "Open Source" -}}
20
- {{ end }}
21
-
22
- {{/* Get latest and lts data */}}
23
- {{- $lts := false -}}
24
- {{- $ltsData := "" -}}
25
- {{- with .data.lts -}}
26
- {{- $ltsData = index $component.data $component.data.lts -}}
27
- {{- if $ltsData -}}
28
- {{- $lts = true -}}
29
- {{ end }}
30
- {{ end }}
31
- {{- $latest := false -}}
32
- {{- $latestData := "" -}}
33
- {{- with .data.latest -}}
34
- {{- $latestData = index $component.data $component.data.latest -}}
35
- {{- if $latestData -}}
36
- {{- $latest = true -}}
37
- {{ end }}
38
- {{ end }}
39
- < div class ="col-md-4 mb-4 ">
40
- < div class ="card h-100 release-card border-0 ">
41
- <!-- header -->
42
- < div class ="card-header bg-dark text-white ">
43
- {{- $title := $component.name -}}
44
- {{- with $component.data.latest -}}
45
- {{- $title = printf "%s v%s" $title $component.data.latest -}}
46
- {{- if $component.data.lts -}}
47
- {{- $title = printf "%s | v%s LTS" $title $component.data.lts -}}
48
- {{- end -}}
49
- {{- end -}}
50
- {{- $title -}}
51
- </ div >
52
- <!-- body -->
53
- < div class ="card-body ">
54
- < div class ="row ">
55
- < div class ="col-md-12 mt-0 mb-0 ">
56
- < p class ="release-text ">
57
- Click to < a href ="{{ $component.data.home | relURL }} "> discover more</ a >
58
- </ p >
59
- </ div >
60
- < div class ="col-md-12 "> </ hr > </ div >
61
- {{- with $latestData.docker -}}
62
- < div class ="col-md-6 ">
63
- {{- if $latest -}}
64
- < p class ="release-title mb-0 mt-0 "> Docker</ p >
65
- < a href ="{{ $latestData.docker}} "
66
- target ="_blank "
67
- rel ="nopener noreferrer "
68
- class ="release-link mb-0 "
69
- >
70
- Latest {{ $component.data.latest}}
71
- </ a >
72
- {{- end -}}
73
- {{- if $lts -}}
74
- < a href ="{{ $ltsData.docker }} "
75
- target ="_blank "
76
- rel ="nopener noreferrer "
77
- class ="release-link mb-0 "
78
- >
79
- LTS {{ $component.data.lts}}
80
- </ a >
81
- {{- end -}}
82
- </ div >
83
- {{ end }}
84
- {{- if not $licensed -}}
85
- < div class ="col-md-6 ">
86
- < p class ="release-title mb-0 mt-0 "> GitHub</ p >
87
- {{- if $latest -}}
88
- < a href ="{{- $latestData.tag -}} "
89
- target ="_blank "
90
- rel ="nopener noreferrer "
91
- class ="release-link mb-0 "
92
- >
93
- Latest {{ $component.data.latest}}
94
- </ a >
95
- {{- end -}}
96
- {{- if $lts -}}
97
- < a href ="{{- $ltsData.tag -}} "
98
- target ="_blank "
99
- rel ="noopener noreferrer "
100
- class ="release-link mb-0 "
101
- >
102
- LTS {{ $component.data.lts -}}
103
- </ a >
104
- {{- end -}}
105
- </ div >
106
- {{- end -}}
107
- </ div >
108
- </ div >
109
-
110
- <!-- Footer -->
111
- < div class ="card-footer bg-transparent border-0 p-0 d-flex ">
112
- < a
113
- href ="{{ $releaseNotesPath | relURL }} "
114
- target ="_blank "
115
- rel ="noopener noreferrer "
116
- class ="home_btn release-btn btn-block w-100 text-center "
117
- >
118
- Release Notes
119
- </ a >
120
- </ div >
121
- </ div >
122
- </ div >
123
- {{ end }}
124
- </ div >
125
- </ div >
126
- {{ end }}
127
- {{ end }}
10
+ {{- with $components -}}
11
+ < div class ="container mt-4 ">
12
+ < div class ="row justify-content-start ">
13
+ {{ range $index, $component := $components }}
14
+ {{/* Determine license type */}}
15
+ {{- $license := "Licensed" -}}
16
+ {{- $licensed := .data.licensed -}}
17
+ {{- $releaseNotesPath := .data.releaseNotesPath -}}
18
+ {{- if not $licensed -}}
19
+ {{- $license = "Open Source" -}}
20
+ {{ end }}
21
+
22
+ {{/* Get latest and lts data */}}
23
+ {{- $lts := false -}}
24
+ {{- $ltsData := "" -}}
25
+ {{- with .data.lts -}}
26
+ {{- $ltsData = index $component.data $component.data.lts -}}
27
+ {{- if $ltsData -}}
28
+ {{- $lts = true -}}
29
+ {{ end }}
30
+ {{ end }}
31
+ {{- $latest := false -}}
32
+ {{- $latestData := "" -}}
33
+ {{- with .data.latest -}}
34
+ {{- $latestData = index $component.data $component.data.latest -}}
35
+ {{- if $latestData -}}
36
+ {{- $latest = true -}}
37
+ {{ end }}
38
+ {{ end }}
39
+ < div class ="col-md-4 mb-4 ">
40
+ < div class ="card h-100 release-card border-0 ">
41
+ <!-- header -->
42
+ < div class ="card-header bg-dark text-white ">
43
+ {{- $title := $component.name -}}
44
+ {{- with $component.data.latest -}}
45
+ {{- $title = printf "%s v%s" $title $component.data.latest -}}
46
+ {{- if $component.data.lts -}}
47
+ {{- $title = printf "%s | v%s LTS" $title $component.data.lts -}}
48
+ {{- end -}}
49
+ {{- end -}}
50
+ {{- $title -}}
51
+ </ div >
52
+ <!-- body -->
53
+ < div class ="card-body ">
54
+ < div class ="row ">
55
+ < div class ="col-md-12 mt-0 mb-0 ">
56
+ < p class ="release-text ">
57
+ Click to < a href ="{{ $component.data.home | relURL }} "> discover more</ a >
58
+ </ p >
59
+ </ div >
60
+ < div class ="col-md-12 "> < hr /> </ div >
61
+ {{- with $latestData.docker -}}
62
+ < div class ="col-md-6 ">
63
+ {{- if $latest -}}
64
+ < p class ="release-title mb-0 mt-0 "> Docker</ p >
65
+ < a
66
+ href ="{{ $latestData.docker }} "
67
+ target ="_blank "
68
+ rel ="nopener noreferrer "
69
+ class ="release-link mb-0 ">
70
+ Latest
71
+ {{ $component.data.latest }}
72
+ </ a >
73
+ {{- end -}}
74
+ {{- if $lts -}}
75
+ < a
76
+ href ="{{ $ltsData.docker }} "
77
+ target ="_blank "
78
+ rel ="nopener noreferrer "
79
+ class ="release-link mb-0 ">
80
+ LTS
81
+ {{ $component.data.lts }}
82
+ </ a >
83
+ {{- end -}}
84
+ </ div >
85
+ {{ end }}
86
+ {{- if not $licensed -}}
87
+ < div class ="col-md-6 ">
88
+ < p class ="release-title mb-0 mt-0 "> GitHub</ p >
89
+ {{- if $latest -}}
90
+ < a
91
+ href ="{{- $latestData.tag -}} "
92
+ target ="_blank "
93
+ rel ="nopener noreferrer "
94
+ class ="release-link mb-0 ">
95
+ Latest
96
+ {{ $component.data.latest }}
97
+ </ a >
98
+ {{- end -}}
99
+ {{- if $lts -}}
100
+ < a
101
+ href ="{{- $ltsData.tag -}} "
102
+ target ="_blank "
103
+ rel ="noopener noreferrer "
104
+ class ="release-link mb-0 ">
105
+ LTS
106
+ {{ $component.data.lts -}}
107
+ </ a >
108
+ {{- end -}}
109
+ </ div >
110
+ {{- end -}}
111
+ </ div >
112
+ </ div >
113
+
114
+ <!-- Footer -->
115
+ < div class ="card-footer bg-transparent border-0 p-0 d-flex ">
116
+ < a
117
+ href ="{{ $releaseNotesPath | relURL }} "
118
+ target ="_blank "
119
+ rel ="noopener noreferrer "
120
+ class ="home_btn release-btn btn-block w-100 text-center ">
121
+ Release Notes
122
+ </ a >
123
+ </ div >
124
+ </ div >
125
+ </ div >
126
+ {{ end }}
127
+ </ div >
128
+ </ div >
129
+ {{ end }}
130
+ {{ end }}
0 commit comments