add alternate rel link for activity to header

This commit is contained in:
Ted Unangst 2023-05-01 17:06:04 -04:00
parent 4e3e07d670
commit 20f2cb81f1
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
{{ if .LocalStyleParam }}
<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
{{ end }}
{{ .APAltLink }}
<link href="/icon.png" rel="icon">
<meta name="theme-color" content="#305">
<meta name="viewport" content="width=device-width">

1
web.go
View File

@ -1079,6 +1079,7 @@ func showonehonk(w http.ResponseWriter, r *http.Request) {
templinfo := getInfo(r)
templinfo["ServerMessage"] = "one honk maybe more"
templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r)
templinfo["APAltLink"] = templates.Sprintf("<link href='%s' rel='alternate' type='application/activity+json'>", xid)
honkpage(w, u, honks, templinfo)
}