rebuilt template lookup to use a configured template directory before the builtins
This commit is contained in:
@@ -21,6 +21,9 @@ type AmConfig struct {
|
||||
Site struct {
|
||||
Title string `yaml:"title"`
|
||||
} `yaml:"site"`
|
||||
Rendering struct {
|
||||
TemplateDir string `yaml:"templatedir"`
|
||||
} `yaml:"rendering"`
|
||||
}
|
||||
|
||||
//go:embed default.yaml
|
||||
|
||||
@@ -8,3 +8,5 @@
|
||||
#
|
||||
site:
|
||||
title: "Amsterdam Web Communities System"
|
||||
rendering:
|
||||
templatedir: custom_templates
|
||||
|
||||
Reference in New Issue
Block a user