summaryrefslogtreecommitdiff
path: root/templates.go
diff options
context:
space:
mode:
Diffstat (limited to 'templates.go')
-rw-r--r--templates.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/templates.go b/templates.go
index ff45997..c90cb09 100644
--- a/templates.go
+++ b/templates.go
@@ -9,13 +9,17 @@ import (
)
var (
- //go:embed templates/*.gmi
+ //go:embed templates/*.gmi templates/*.gmi.txt
geminiTemplateFS embed.FS
- geminiTemplate = template.Must(template.ParseFS(geminiTemplateFS, "templates/*.gmi"))
+ geminiTemplate = template.Must(template.ParseFS(
+ geminiTemplateFS,
+ "templates/*.gmi",
+ "templates/*.gmi.txt",
+ ))
)
var (
- //go:embed templates/*.gophermap templates/*.gophertext
+ //go:embed templates/*.gph templates/*.gph.txt
gopherTemplateFS embed.FS
gopherTemplate = template.Must(
template.New("gopher").Funcs(template.FuncMap{
@@ -24,8 +28,8 @@ var (
"rawtext": gopherRawtext,
}).ParseFS(
gopherTemplateFS,
- "templates/*.gophermap",
- "templates/*.gophertext",
+ "templates/*.gph",
+ "templates/*.gph.txt",
),
)
)