summaryrefslogtreecommitdiff
path: root/cmd/generate
diff options
context:
space:
mode:
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"`