show badges from pkg.go.dev
1 file changed, 6 insertions(+), 1 deletion(-)
changed files
M templates.go → templates.go
@@ -150,5 +150,10 @@ ) } func GodocBadge(config *Config, pkg string) g.Node { - return A(Href(godocURL(config, pkg)), g.Text("Go Reference")) + return A(Href(godocURL(config, pkg)), + Img( + Alt("Go Reference"), + Src(badgeURL(config, pkg)+".svg"), + ), + ) }