Skip to content

Commit 0c86ec4

Browse files
committed
feat: contributors: Display all initiatives
Display all initiatives regardless of leadership. Also, added contributor label customization.
1 parent 0812dd7 commit 0c86ec4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

layouts/contributors/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2 class="text-3xl font-semibold mb-8 text-center lg:text-left">Contributions</
4343
{{ $initiatives := sort $initiatives_unsorted "Title" }}
4444
{{ if $initiatives }}
4545
<div class="mb-12">
46-
<h3 class="text-2xl font-semibold mb-5 border-b-2 border-primary dark:border-darkmode-primary pb-2">Initiatives Led</h3>
46+
<h3 class="text-2xl font-semibold mb-5 border-b-2 border-primary dark:border-darkmode-primary pb-2">Initiatives</h3>
4747
<div class="grid md:grid-cols-2 gap-6">
4848
{{ range $initiatives }}
4949
<div>

layouts/partials/components/initiative-card.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ <h3 class="text-2xl font-semibold mb-2">
77
</h3>
88
{{ if $item.Params.author }}
99
<p class="text-sm text-gray-600 dark:text-gray-400 mb-2">
10-
Led by: {{ partial "components/author-links.html" $item }}
10+
{{ $label := "Contributor" }}
11+
{{ if gt (len $item.Params.author) 1 }}
12+
{{ $label = "Contributors" }}
13+
{{ end }}
14+
{{ with $item.Params.author_label }}
15+
{{ $label = . }}
16+
{{ end }}
17+
{{ $label }}: {{ partial "components/author-links.html" $item }}
1118
</p>
1219
{{ end }}
1320
<p class="mb-3 text-text dark:text-darkmode-text flex-grow">{{ $item.Description | truncate 150 }}</p>

0 commit comments

Comments
 (0)