From 6987edc0d83e99bef88f3f3895c8576c5a801ae3 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Wed, 14 Oct 2015 15:20:41 -0400 Subject: [PATCH] Remove non-API navigation links when using auth --- server.go | 1 + templates/base.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/server.go b/server.go index 6f1b63e..d28bf86 100644 --- a/server.go +++ b/server.go @@ -98,6 +98,7 @@ func setup() *web.Mux { TemplateSet := pongo2.NewSet("templates", p2l) TemplateSet.Globals["sitename"] = Config.siteName TemplateSet.Globals["siteurl"] = Config.siteURL + TemplateSet.Globals["using_auth"] = Config.authFile != "" err = populateTemplatesMap(TemplateSet, Templates) if err != nil { log.Fatal("Error: could not load templates", err) diff --git a/templates/base.html b/templates/base.html index e62f35f..e171516 100644 --- a/templates/base.html +++ b/templates/base.html @@ -13,8 +13,10 @@