@@ -22,11 +22,7 @@ | |||||
</div> | </div> | ||||
<div> | <div> | ||||
<ul class="buttons"> | <ul class="buttons"> | ||||
<li><a href="http://domain.tld/path" class="button n01">Twitter</a></li> | |||||
<li><a href="http://domain.tld/path" class="button n02">Mastodon</a></li> | |||||
<li><a href="http://domain.tld/path" class="button n03">Pixelfed</a></li> | |||||
<li><a href="http://domain.tld/path" class="button n04">Instagram</a></li> | |||||
<li><a href="http://domain.tld/path" class="button n05">Whatever Else</a></li> | |||||
{{range .Links}}<li><a href="{{.URL}}" class="button">{{.Title}}</a></li>{{end}} | |||||
</ul> | </ul> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -13,8 +13,14 @@ type Profile struct { | |||||
Name converter.NullJSONString `json:"name"` | Name converter.NullJSONString `json:"name"` | ||||
Header converter.NullJSONString `json:"header"` | Header converter.NullJSONString `json:"header"` | ||||
Bio converter.NullJSONString `json:"bio"` | Bio converter.NullJSONString `json:"bio"` | ||||
Links []Link `json:"links"` | |||||
} | } | ||||
func (p *Profile) RenderedBio() template.HTML { | func (p *Profile) RenderedBio() template.HTML { | ||||
return template.HTML(p.Bio.String) | return template.HTML(p.Bio.String) | ||||
} | } | ||||
type Link struct { | |||||
Title string `json:"title"` | |||||
URL string `json:"url"` | |||||
} |