doc: Adopters page (#254)

Adds page with full list of `avo` adopters. Linked to from README.

Updates #101
This commit is contained in:
Michael McLoughlin
2022-04-17 23:57:05 -07:00
committed by GitHub
parent 57ea8119b7
commit 1cbd35f134
6 changed files with 111 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ func mainerr() (err error) {
t.Funcs(template.FuncMap{
"include": include,
"snippet": snippet,
"avatar": avatar,
})
// Load template.
@@ -163,3 +164,9 @@ func snippet(filename, start, end string) (string, error) {
return buf.String(), nil
}
// avatar returns HTML for a Github user avatar.
func avatar(owner string) (string, error) {
format := `<img src="https://github.com/%s.png?size=24" width="24" height="24" hspace="4" valign="middle" />`
return fmt.Sprintf(format, owner), nil
}