diff --git a/appview/pages/funcmap.go b/appview/pages/funcmap.go --- a/appview/pages/funcmap.go +++ b/appview/pages/funcmap.go @@ -384,6 +384,28 @@ "fullAvatar": func(handle string) string { return p.AvatarUrl(handle, "") }, + "placeholderAvatar": func(size string) template.HTML { + sizeClass := "size-6" + iconSize := "size-4" + if size == "tiny" { + sizeClass = "size-6" + iconSize = "size-4" + } else if size == "small" { + sizeClass = "size-8" + iconSize = "size-5" + } else { + sizeClass = "size-12" + iconSize = "size-8" + } + icon, _ := p.icon("user-round", []string{iconSize, "text-gray-400", "dark:text-gray-500"}) + return template.HTML(fmt.Sprintf(`
{{ .Pronouns }}
- {{ end }} + {{ if .Pronouns }} +{{ .Pronouns }}
+ {{ end }} {{ end }}{{ .Description }}
+{{ .Description }}
{{ end }}- SSH public keys added here will be broadcasted to knots that you are a member of, + SSH public keys added here will be broadcasted to knots that you are a member of, allowing you to push to repositories there.
ADD SSH KEY
+SSH keys allow you to push to repositories in knots you're a member of.