summaryrefslogtreecommitdiffstats
path: root/roseh.moe.go
diff options
context:
space:
mode:
Diffstat (limited to 'roseh.moe.go')
-rw-r--r--roseh.moe.go6
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) {