diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 19:14:56 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-08 19:15:13 -0700 |
| commit | db998d0b22bce6c7b23fc34bf1ed8d0ef2474860 (patch) | |
| tree | ef1c280ced64fdae5819a211da83dcb4d8ad6a8c /roseh.moe.go | |
| parent | Pick default port (diff) | |
| download | roseh.moe-db998d0b22bce6c7b23fc34bf1ed8d0ef2474860.tar.zst | |
Use a relative link for projects
Diffstat (limited to 'roseh.moe.go')
| -rw-r--r-- | roseh.moe.go | 6 |
1 files changed, 5 insertions, 1 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) { |
