diff --git a/internal/core/templates/org.html b/internal/core/templates/org.html index d68d879..6dffa24 100644 --- a/internal/core/templates/org.html +++ b/internal/core/templates/org.html @@ -88,7 +88,22 @@ {{if .Links}}

Links

-
{{template "link-list" .Links}}
+
+ {{range .Links}} + {{if .Href}} + + {{template "link-icon" .Platform}} + {{.Display}} + {{template "icon-arrow-right" ""}} + + {{else}} +
+ {{template "link-icon" .Platform}} + {{.Display}} +
+ {{end}} + {{end}} +
{{end}} {{end}} diff --git a/internal/web/templates/icons.html b/internal/web/templates/icons.html index 6fd9538..5cdeb84 100644 --- a/internal/web/templates/icons.html +++ b/internal/web/templates/icons.html @@ -51,6 +51,3 @@ back to a generic link glyph for "website" and anything unknown. Keep the branches in sync with the platforms in store/org_links.go + user_links.go. */}} {{define "link-icon"}}{{if eq . "email"}}{{template "icon-mail" ""}}{{else if eq . "signal"}}{{template "icon-brand-signal" ""}}{{else if eq . "meshcore"}}{{template "icon-key" ""}}{{else if eq . "discord"}}{{template "icon-brand-discord" ""}}{{else if eq . "facebook"}}{{template "icon-brand-facebook" ""}}{{else if eq . "instagram"}}{{template "icon-brand-instagram" ""}}{{else if eq . "x"}}{{template "icon-brand-x" ""}}{{else if eq . "youtube"}}{{template "icon-brand-youtube" ""}}{{else if eq . "tiktok"}}{{template "icon-brand-tiktok" ""}}{{else if eq . "twitch"}}{{template "icon-brand-twitch" ""}}{{else if eq . "github"}}{{template "icon-brand-github" ""}}{{else if eq . "telegram"}}{{template "icon-brand-telegram" ""}}{{else if eq . "reddit"}}{{template "icon-brand-reddit" ""}}{{else if eq . "linkedin"}}{{template "icon-brand-linkedin" ""}}{{else if eq . "mastodon"}}{{template "icon-brand-mastodon" ""}}{{else if eq . "bluesky"}}{{template "icon-brand-bluesky" ""}}{{else}}{{template "icon-link" ""}}{{end}}{{end}} -{{/* link-list renders a wrapping row of org link buttons. . is a slice of links, - each exposing .Platform, .URL, and .Display. */}} -{{define "link-list"}}
{{range .}}{{if .Href}}{{template "link-icon" .Platform}}{{.Display}}{{else}}{{template "link-icon" .Platform}}{{.Display}}{{end}}{{end}}
{{end}}