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 +++++- templates/index.html.template | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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) { diff --git a/templates/index.html.template b/templates/index.html.template index ed882e0..6fc67d0 100644 --- a/templates/index.html.template +++ b/templates/index.html.template @@ -9,7 +9,7 @@ A dragon loli -

Projects +

Projects

Games?

Magic wormhole -- cgit v1.3.1