aboutsummaryrefslogtreecommitdiffhomepage
path: root/template
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-01-15 18:08:30 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-01-15 18:08:30 -0800
commitc2fd2e747aea3a175f5caf327d4f82deda2ce5e0 (patch)
tree0420d1ebbbcb630d108fb10ec9574c2ea8949625 /template
parentd7f66ffa5cd6f1a07dbdba4e52cff1370e858d65 (diff)
Add functions to get config values
Diffstat (limited to 'template')
-rw-r--r--template/template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/template.go b/template/template.go
index 60d4d85..0e45c3d 100644
--- a/template/template.go
+++ b/template/template.go
@@ -36,7 +36,7 @@ type Engine struct {
func (e *Engine) parseAll() {
funcMap := template.FuncMap{
"baseURL": func() string {
- return e.cfg.Get("BASE_URL", config.DefaultBaseURL)
+ return e.cfg.BaseURL()
},
"hasOAuth2Provider": func(provider string) bool {
return e.cfg.Get("OAUTH2_PROVIDER", "") == provider