13
13
14
14
< h2 class ="text-2xl font-bold text-center mb-4 "> {{ $page.Title }}</ h2 >
15
15
16
+ {{/* --- Button Section --- */}}
16
17
< div class ="grid grid-cols-2 gap-2 mb-4 ">
17
- < a href ="{{ .website }} " target ="_blank " rel ="noopener " class ="btn btn-new-primary text-sm text-center "> Website</ a >
18
- < a href ="{{ .source_code }} " target ="_blank " rel ="noopener " class ="btn btn-new-outline text-sm text-center "> Source Code</ a >
18
+ < a href ="{{ .website }} " target ="_blank " rel ="noopener " class ="btn btn-new-primary has-inline-icon !text-sm !py-2 !px-4 flex items-center justify-center ">
19
+ Website {{ partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "ml-1.5") }}
20
+ </ a >
21
+ < a href ="{{ .source_code }} " target ="_blank " rel ="noopener " class ="btn btn-new-outline has-inline-icon !text-sm !py-2 !px-4 flex items-center justify-center ">
22
+ Source Code {{ partial "icon.html" (dict "style" "solid" "name" "arrow-up-right-from-square" "class" "ml-1.5") }}
23
+ </ a >
19
24
</ div >
20
25
21
26
< div class ="flex justify-center items-center space-x-2 mb-4 ">
@@ -27,57 +32,74 @@ <h2 class="text-2xl font-bold text-center mb-4">{{ $page.Title }}</h2>
27
32
{{ end }}
28
33
</ div >
29
34
35
+ {{/* --- Details List --- */}}
30
36
< div class ="border-t border-border dark:border-darkmode-border pt-4 ">
31
- < dl class ="text-sm text-text dark:text-darkmode-text ">
32
- < div class ="flex justify-between py-1 ">
33
- < dt class ="font-semibold "> Maintainer(s):</ dt >
34
- < dd class ="text-right ">
35
- {{ with .maintainer }}
37
+ < dl class ="text-sm text-text dark:text-darkmode-text space-y-2 ">
38
+
39
+ {{/* Maintainer(s) Row */}}
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 ">
36
44
{{ $maintainerList := . }}
37
- {{ if reflect.IsSlice $maintainerList }}
38
- {{ $links := slice }}
39
- {{ range $maintainerList }}
40
- {{ $nameForProcessing := . | replaceRE "[.]" "" | replaceRE "ć" "c" | replaceRE "Ć" "C" }}
41
- {{ $contributorSlug := $nameForProcessing | anchorize }}
42
- {{ $contributorPage := $page.Site.GetPage (printf "contributors/%s" $contributorSlug) }}
43
- {{ if $contributorPage }}
44
- {{ $links = $links | append (printf `< a href ="%s " class ="text-primary dark:text-darkmode-primary hover:underline "> %s</ a > ` $contributorPage.RelPermalink .) }}
45
- {{ else }}
46
- {{ $links = $links | append . }}
47
- {{ end }}
48
- {{ end }}
49
- {{ delimit $links ", " | safeHTML }}
50
- {{ else }}
51
- {{ $nameForProcessing := . | replaceRE "[.]" "" | replaceRE "ć" "c" | replaceRE "Ć" "C" }}
52
- {{ $contributorSlug := $nameForProcessing | anchorize }}
53
- {{ $contributorPage := $page.Site.GetPage (printf "contributors/%s" $contributorSlug) }}
54
- {{ if $contributorPage }}
55
- < a href ="{{ $contributorPage.RelPermalink }} " class ="text-primary dark:text-darkmode-primary hover:underline "> {{ . }}</ a >
56
- {{ else }}
57
- {{ . }}
58
- {{ end }}
59
- {{ end }}
60
- {{ else }}
61
- N/A
62
- {{ end }}
63
- </ dd >
64
- </ div >
65
- < div class ="flex justify-between py-1 ">
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 ">
54
+ {{ if $contributorPage }}
55
+ < a href ="{{ $contributorPage.RelPermalink }} " class ="text-primary dark:text-darkmode-primary hover:underline "> {{ . }}</ a >
56
+ {{ else }}
57
+ {{ . }}
58
+ {{ end }}
59
+ </ 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 >
80
+ </ div >
81
+ </ dd >
82
+ </ div >
83
+ {{ end }}
84
+
85
+ {{/* Other Details Rows */}}
86
+ < div class ="flex justify-between ">
66
87
< dt class ="font-semibold "> Language:</ dt >
67
- < dd class =" text-right " > {{ .language | default "N/A" }}</ dd >
88
+ < dd > {{ .language | default "N/A" }}</ dd >
68
89
</ div >
69
- < div class ="flex justify-between py-1 ">
90
+ < div class ="flex justify-between ">
70
91
< dt class ="font-semibold "> License:</ dt >
71
- < dd class =" text-right " > {{ .license | default "N/A" }}</ dd >
92
+ < dd > {{ .license | default "N/A" }}</ dd >
72
93
</ div >
73
- < div class ="flex justify-between py-1 ">
94
+ < div class ="flex justify-between ">
74
95
< dt class ="font-semibold "> Application:</ dt >
75
- < dd class =" text-right " > {{ .field_of_application | default "N/A" }}</ dd >
96
+ < dd > {{ .field_of_application | default "N/A" }}</ dd >
76
97
</ div >
77
- < div class ="flex justify-between py-1 items-center ">
98
+ < div class ="flex justify-between items-center ">
78
99
< dt class ="font-semibold "> Dependencies:</ dt >
79
- < dd class =" text-right " > {{ .dependencies | default "N/A" }}</ dd >
100
+ < dd > {{ .dependencies | default "N/A" }}</ dd >
80
101
</ div >
102
+
81
103
</ dl >
82
104
</ div >
83
105
0 commit comments