Commit e7b249b38d
e7b249b38d2d85e868196130ce690fc43088d9d2
parent: 4744c629ed
Verified · cmc ci/build: success
cmc <hello@cleberg.net> · 2026-08-28T19:22:52Z
profile: render links as links, not chips
Chips read as membership tokens next to the org chips directly below
them. Profile links are links: plain anchors on the meta line, separated
by ·, matching the website line above.
internal/web/static/style.css
+3 −3
| @@ -700,8 +700,8 @@ h2 .count { color: var(--muted); font-weight: 400; font-size: var(--fs-2); } |
| 700 | 700 | } |
| 701 | 701 | .headrow .spacer { flex: 1; } |
| 702 | 702 | |
| 703 | | /* member, org and profile link chips on owner pages */ |
| 704 | | a.memberchip, a.linkchip { |
| 703 | /* member and org chips on owner pages */ |
| 704 | a.memberchip { |
| 705 | 705 | display: inline-block; |
| 706 | 706 | border: 1px solid var(--line); |
| 707 | 707 | border-radius: var(--r-pill); |
| @@ -710,7 +710,7 @@ a.memberchip, a.linkchip { |
| 710 | 710 | font-size: var(--fs-1); |
| 711 | 711 | margin: 0 0.15rem 0.15rem 0; |
| 712 | 712 | } |
| 713 | | a.memberchip:hover, a.linkchip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); } |
| 713 | a.memberchip:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); } |
| 714 | 714 | a.memberchip .role { color: var(--muted); } |
| 715 | 715 | |
| 716 | 716 | /* landing page */ |
internal/web/templates/owner.html
+1 −1
| @@ -4,7 +4,7 @@ |
| 4 | 4 | <h1>{{.Owner}} <span class="chip chip-neutral">{{.Kind}}</span></h1> |
| 5 | 5 | {{if .Profile.Description}}<p class="desc lede">{{.Profile.Description}}</p>{{end}} |
| 6 | 6 | {{if .Profile.Website}}<p class="meta"><a href="{{.Profile.Website}}" rel="nofollow me">{{.Profile.Website}}</a></p>{{end}} |
| 7 | | {{if .Profile.Links}}<p class="meta">{{range .Profile.Links}}<a class="linkchip" href="{{.URL}}" rel="nofollow me">{{if .Label}}{{.Label}}{{else}}{{.URL}}{{end}}</a> {{end}}</p>{{end}} |
| 7 | {{if .Profile.Links}}<p class="meta">{{range $i, $l := .Profile.Links}}{{if $i}} · {{end}}<a href="{{$l.URL}}" rel="nofollow me">{{if $l.Label}}{{$l.Label}}{{else}}{{$l.URL}}{{end}}</a>{{end}}</p>{{end}} |
| 8 | 8 | {{if .Orgs}}<p class="meta">member of {{range .Orgs}}<a class="memberchip" href="/{{.Username}}">{{.Username}}</a> {{end}}</p>{{end}} |
| 9 | 9 | {{if .Members}}<p class="meta">members {{range .Members}}<a class="memberchip" href="/{{.Username}}">{{.Username}} <span class="role">{{.Role}}</span></a> {{end}}</p>{{end}} |
| 10 | 10 | </section> |