all repos — honk @ 43cd486824f1979ab27e9be0797a2904241a5290

my fork of honk

add alternate rel link for activity to header
Ted Unangst tedu@tedunangst.com
Mon, 01 May 2023 17:06:04 -0400
commit

43cd486824f1979ab27e9be0797a2904241a5290

parent

90e6ed010b0fadf342fa0a1976dcdfc79ef7e790

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M views/header.htmlviews/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.goweb.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) }