add alternate rel link for activity to header
This commit is contained in:
parent
4e3e07d670
commit
20f2cb81f1
|
@ -6,6 +6,7 @@
|
||||||
{{ if .LocalStyleParam }}
|
{{ if .LocalStyleParam }}
|
||||||
<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
|
<link href="/local.css{{ .LocalStyleParam }}" rel="stylesheet">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ .APAltLink }}
|
||||||
<link href="/icon.png" rel="icon">
|
<link href="/icon.png" rel="icon">
|
||||||
<meta name="theme-color" content="#305">
|
<meta name="theme-color" content="#305">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
|
|
1
web.go
1
web.go
|
@ -1079,6 +1079,7 @@ func showonehonk(w http.ResponseWriter, r *http.Request) {
|
||||||
templinfo := getInfo(r)
|
templinfo := getInfo(r)
|
||||||
templinfo["ServerMessage"] = "one honk maybe more"
|
templinfo["ServerMessage"] = "one honk maybe more"
|
||||||
templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r)
|
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)
|
honkpage(w, u, honks, templinfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue