2
2
{{ with $page.Params }}
3
3
< div class ="p-6 rounded-lg bg-theme-light dark:bg-darkmode-theme-light shadow-lg ">
4
4
{{ with .logo }}
5
- {{ $logoRes := $page.Resources.GetMatch . }}
6
- {{ if $logoRes }}
7
- {{ $thumb := $logoRes.Fit "200x200" }}
8
- < div class ="p-2 bg-white dark:bg-gray-800 rounded-lg mb-4 flex justify-center ">
9
- < img src ="{{ $thumb.RelPermalink }} " alt ="{{ $page.Title }} logo " class ="max-h-24 w-auto ">
10
- </ div >
11
- {{ end }}
5
+ {{ $logoRes := $page.Resources.GetMatch . }}
6
+ {{ if $logoRes }}
7
+ {{ $thumb := $logoRes.Fit "200x200" }}
8
+ < div class ="p-2 bg-white dark:bg-gray-800 rounded-lg mb-4 flex justify-center ">
9
+ < img src ="{{ $thumb.RelPermalink }} " alt ="{{ $page.Title }} logo " class ="max-h-24 w-auto ">
10
+ </ div >
11
+ {{ end }}
12
12
{{ end }}
13
13
14
14
< h2 class ="text-2xl font-bold text-center mb-4 "> {{ $page.Title }}</ h2 >
@@ -25,91 +25,91 @@ <h2 class="text-2xl font-bold text-center mb-4">{{ $page.Title }}</h2>
25
25
26
26
< div class ="flex justify-center items-center space-x-2 mb-4 ">
27
27
{{ with .version_widget_url }}
28
- < img src ="{{ . }} " alt ="Version Badge " class ="inline-block h-5 ">
28
+ < img src ="{{ . }} " alt ="Version Badge " class ="inline-block h-5 ">
29
29
{{ end }}
30
30
{{ with .stars_widget_url }}
31
- < img src ="{{ . }} " alt ="GitHub Stars " class ="inline-block h-5 ">
31
+ < img src ="{{ . }} " alt ="GitHub Stars " class ="inline-block h-5 ">
32
32
{{ end }}
33
33
</ div >
34
34
35
35
{{/* --- Details List --- */}}
36
36
< div class ="border-t border-border dark:border-darkmode-border pt-4 ">
37
37
< dl class ="text-sm text-text dark:text-darkmode-text space-y-2 ">
38
-
38
+
39
39
{{/* Maintainer(s) Row */}}
40
40
{{ with .maintainer }}
41
- < div class ="flex justify-between items-start ">
42
- < dt class ="font-semibold pt-2 "> Maintainer(s):</ dt >
43
- < dd class ="text-right ">
44
- {{ $maintainerList := . }}
45
- {{ if not (reflect.IsSlice .) }}{{ $maintainerList = slice . }}{{ end }}
46
-
47
- < div class ="flex items-center justify-end ">
48
- < div class ="mr-2 text-right ">
49
- {{ range $i, $name := $maintainerList }}
50
- {{ $nameForProcessing := . | replaceRE "[.]" "" | replaceRE "ć" "c" | replaceRE "Ć" "C" }}
51
- {{ $contributorSlug := $nameForProcessing | anchorize }}
52
- {{ $contributorPage := $page.Site.GetPage (printf "contributors/%s" $contributorSlug) }}
53
- < span class ="block ">
41
+ < div class ="flex justify-between items-start ">
42
+ < dt class ="font-semibold pt-2 shrink-0 pr-2 "> Maintainer(s):</ dt >
43
+ < dd >
44
+ {{ $maintainerList := . }}
45
+ {{ if not (reflect.IsSlice .) }}{{ $maintainerList = slice . }}{{ end }}
46
+
47
+ < div class ="flex items-center justify-end ">
48
+ < div class ="flex-shrink-0 flex -space-x-3 ">
49
+ {{ range $maintainerList }}
50
+ {{ $maintainerName := . }}
51
+ {{ $nameForProcessing := $maintainerName | replaceRE "[.]" "" | replaceRE "ć" "c" | replaceRE "Ć" "C" }}
52
+ {{ $contributorSlug := $nameForProcessing | anchorize }}
53
+ {{ $contributorPage := $page.Site.GetPage (printf "contributors/%s" $contributorSlug) }}
54
+ {{ if and $contributorPage $contributorPage.Params.image }}
55
+ {{ with $contributorPage.Resources.GetMatch $contributorPage.Params.image }}
56
+ {{ $thumb := .Fill "32x32 Lanczos" }}
57
+ < img src ="{{ $thumb.RelPermalink }} " alt ="{{ $maintainerName }} " title ="{{ $maintainerName }} " class ="w-8 h-8 rounded-full object-cover border-2 border-white dark:border-darkmode-theme-light ">
58
+ {{ end }}
59
+ {{ else }}
60
+ < div class ="w-8 h-8 rounded-full bg-gray-200 dark:bg-darkmode-theme-dark flex items-center justify-center text-gray-400 border-2 border-white dark:border-darkmode-theme-light " title ="{{ $maintainerName }} ">
61
+ {{ partial "icon.html" (dict "style" "solid" "name" "user" "class" "text-base") }}
62
+ </ div >
63
+ {{ end }}
64
+ {{ end }}
65
+ </ div >
66
+ < div class ="ml-2 text-left ">
67
+ {{ range $i, $name := $maintainerList }}
68
+ {{ $nameForProcessing := . | replaceRE "[.]" "" | replaceRE "ć" "c" | replaceRE "Ć" "C" }}
69
+ {{ $contributorSlug := $nameForProcessing | anchorize }}
70
+ {{ $contributorPage := $page.Site.GetPage (printf "contributors/%s" $contributorSlug) }}
71
+ < span class ="block ">
54
72
{{ if $contributorPage }}
55
73
< a href ="{{ $contributorPage.RelPermalink }} " class ="text-primary dark:text-darkmode-primary hover:underline "> {{ . }}</ a >
56
74
{{ else }}
57
75
{{ . }}
58
76
{{ end }}
59
77
</ span >
60
- {{ end }}
61
- </ div >
62
- < div class ="flex-shrink-0 flex -space-x-3 ">
63
- {{ range $maintainerList }}
64
- {{ $maintainerName := . }}
65
- {{ $nameForProcessing := $maintainerName | replaceRE "[.]" "" | replaceRE "ć" "c" | replaceRE "Ć" "C" }}
66
- {{ $contributorSlug := $nameForProcessing | anchorize }}
67
- {{ $contributorPage := $page.Site.GetPage (printf "contributors/%s" $contributorSlug) }}
68
- {{ if and $contributorPage $contributorPage.Params.image }}
69
- {{ with $contributorPage.Resources.GetMatch $contributorPage.Params.image }}
70
- {{ $thumb := .Fill "32x32 Lanczos" }}
71
- < img src ="{{ $thumb.RelPermalink }} " alt ="{{ $maintainerName }} " title ="{{ $maintainerName }} " class ="w-8 h-8 rounded-full object-cover border-2 border-white dark:border-darkmode-theme-light ">
72
- {{ end }}
73
- {{ else }}
74
- < div class ="w-8 h-8 rounded-full bg-gray-200 dark:bg-darkmode-theme-dark flex items-center justify-center text-gray-400 border-2 border-white dark:border-darkmode-theme-light " title ="{{ $maintainerName }} ">
75
- {{ partial "icon.html" (dict "style" "solid" "name" "user" "class" "text-base") }}
76
- </ div >
77
- {{ end }}
78
- {{ end }}
79
- </ div >
78
+ {{ end }}
80
79
</ div >
81
- </ dd >
82
- </ div >
80
+ </ div >
81
+ </ dd >
82
+ </ div >
83
83
{{ end }}
84
84
85
85
{{/* Other Details Rows */}}
86
- < div class ="flex justify-between ">
87
- < dt class ="font-semibold "> Language:</ dt >
88
- < dd > {{ .language | default "N/A" }}</ dd >
86
+ < div class ="flex justify-between items-start ">
87
+ < dt class ="font-semibold shrink-0 pr-2 "> Language:</ dt >
88
+ < dd class =" text-right " > {{ .language | default "N/A" }}</ dd >
89
89
</ div >
90
- < div class ="flex justify-between ">
91
- < dt class ="font-semibold "> License:</ dt >
92
- < dd > {{ .license | default "N/A" }}</ dd >
90
+ < div class ="flex justify-between items-start ">
91
+ < dt class ="font-semibold shrink-0 pr-2 "> License:</ dt >
92
+ < dd class =" text-right " > {{ .license | default "N/A" }}</ dd >
93
93
</ div >
94
- < div class ="flex justify-between ">
95
- < dt class ="font-semibold "> Application:</ dt >
96
- < dd > {{ .field_of_application | default "N/A" }}</ dd >
94
+ < div class ="flex justify-between items-start ">
95
+ < dt class ="font-semibold shrink-0 pr-2 "> Application:</ dt >
96
+ < dd class =" text-right " > {{ .field_of_application | default "N/A" }}</ dd >
97
97
</ div >
98
- < div class ="flex justify-between items-center ">
99
- < dt class ="font-semibold "> Dependencies:</ dt >
100
- < dd > {{ .dependencies | default "N/A" }}</ dd >
98
+ < div class ="flex justify-between items-start ">
99
+ < dt class ="font-semibold shrink-0 pr-2 "> Dependencies:</ dt >
100
+ < dd class =" text-right " > {{ .dependencies | default "N/A" }}</ dd >
101
101
</ div >
102
102
103
103
</ dl >
104
104
</ div >
105
-
105
+
106
106
< div class ="border-t border-border dark:border-darkmode-border pt-4 mt-4 flex flex-wrap gap-2 justify-center ">
107
107
{{ if .supports_NIR }}
108
- < span class ="support-badge "> NIR Support</ span >
108
+ < span class ="support-badge "> NIR Support</ span >
109
109
{{ end }}
110
110
{{ if .supports_hardware }}
111
- < span class ="support-badge "> Hardware Support</ span >
111
+ < span class ="support-badge "> Hardware Support</ span >
112
112
{{ end }}
113
113
</ div >
114
114
</ div >
115
- {{ end }}
115
+ {{ end }}
0 commit comments