add alternate rel link for activity to header
Ted Unangst tedu@tedunangst.com
Mon, 01 May 2023 17:06:04 -0400
2 files changed,
2 insertions(+),
0 deletions(-)
M
views/header.html
→
views/header.html
@@ -6,6 +6,7 @@ <link href="/style.css{{ .StyleParam }}" rel="stylesheet">
{{ 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">
M
web.go
→
web.go
@@ -1079,6 +1079,7 @@
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) }