From 8ef3d3618e9d2445ea10ad306589dcc989ac6f36 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 16 Mar 2020 15:42:15 +0100 Subject: site title --- src/http/http.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/http/http.go') diff --git a/src/http/http.go b/src/http/http.go index dd4fe95..49efdec 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -165,7 +165,10 @@ func pathHandler(w http.ResponseWriter, r *http.Request) { content["Sort"] = "namedirfirst" content["Order"] = "desc" - // if we're not at the root, we can still go futher down! + // Set the site's title to the title defined in the config + content["SiteTitle"] = viper.GetString("server.name") + + // if we're not at the root, we can still go futher down if r.RequestURI != "/" { content["CanGoUp"] = "true" logrus.Tracef("can go up") -- cgit 1.4.1