From db998d0b22bce6c7b23fc34bf1ed8d0ef2474860 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Tue, 8 Sep 2026 19:14:56 -0700 Subject: Use a relative link for projects --- roseh.moe.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roseh.moe.go') diff --git a/roseh.moe.go b/roseh.moe.go index 5ca646d..d03d106 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -185,7 +185,11 @@ func makeETag(content io.Reader) (string, error) { var ( //go:embed templates/outline.html.template outlineString string - outlineTemplate = template.Must(template.New("outline").Parse(outlineString)) + outlineTemplate = template.Must(template.New("outline").Funcs(template.FuncMap{ + "host": func() string { + return selfURL.Host + }, + }).Parse(outlineString)) ) func outlinedTemplate(s string) (*template.Template, error) { -- cgit v1.3.1