doc: Adopters page (#254)
Adds page with full list of `avo` adopters. Linked to from README. Updates #101
This commit is contained in:
committed by
GitHub
parent
57ea8119b7
commit
1cbd35f134
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user