summaryrefslogtreecommitdiff
path: root/cmd/generate
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-06-08 22:06:45 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-06-08 22:06:45 -0600
commit3423e976f619a913a040c87bf116d06ca5823d4a (patch)
tree2013cce8981d283f9462fc6150705d498996b959 /cmd/generate
parent0bd9be7a0ba08fdecb065790f48d2704c88d22c0 (diff)
Improve contrib descriptions
Diffstat (limited to 'cmd/generate')
-rw-r--r--cmd/generate/imworkingon.html.tmpl2
-rw-r--r--cmd/generate/src_contribs.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/generate/imworkingon.html.tmpl b/cmd/generate/imworkingon.html.tmpl
index 13444be..ad00478 100644
--- a/cmd/generate/imworkingon.html.tmpl
+++ b/cmd/generate/imworkingon.html.tmpl
@@ -40,7 +40,7 @@
{{- define "contrib" }}
{{ $contrib := . }}
{{ $upstream := $contrib | getUpstream }}
- <article class="contrib {{ $contrib.StatusClass }}-contrib">
+ <article class="contrib {{ $contrib.StatusClass }}-contrib" {{- if $contrib.ID }}id="contrib-{{ $contrib.ID }}"{{ end }}>
<div class="contrib-upstream-name"><a class="em" href="{{ index $upstream.URLs 0 }}">{{ $upstream.Name }}</a></div>
<div class="contrib-upstream-desc">{{ $upstream.Desc | md2html }}</div>
<div class="contrib-urls">
diff --git a/cmd/generate/src_contribs.go b/cmd/generate/src_contribs.go
index 0ead1cd..39bc04b 100644
--- a/cmd/generate/src_contribs.go
+++ b/cmd/generate/src_contribs.go
@@ -15,6 +15,7 @@ type User struct {
}
type Contribution struct {
+ ID string
URLs []string `json:"urls"`
Tags []string `json:"tags"`
SponsoredBy string `json:"sponsored-by"`