From 8cd313572f8c2116a583a694fbd3e680c9b3394d Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 21 Oct 2023 08:25:58 -0300 Subject: [PATCH] adjust templateMapping. --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index 6b58fd5..0ccf495 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( type Settings struct { Port string `envconfig:"PORT" default:"2999"` DiskCachePath string `envconfig:"DISK_CACHE_PATH" default:"/tmp/njump-cache"` - Domain string `envconfig:"DOMAIN" default:"njump.me"` + Domain string `envconfig:"DOMAIN" default:"njump.me"` } //go:embed static/* @@ -70,12 +70,10 @@ func main() { // initialize templates // use a mapping to expressly link the templates and share them between more kinds/types templateMapping = map[string]string{ - "homepage": "homepage.html", "profile": "profile.html", "profile_sitemap": "sitemap.xml", "relay": "relay.html", "relay_sitemap": "sitemap.xml", - "archive": "archive.html", "archive_sitemap": "sitemap.xml", }