custom: Allow override of home page

This commit is contained in:
Tom Wiesing 2023-01-08 13:53:53 +01:00
parent 729b9cfb51
commit cf59bd7db7
No known key found for this signature in database
4 changed files with 45 additions and 20 deletions

View file

@ -11,8 +11,8 @@ func (custom *Custom) CustomAssetsPath() string {
return filepath.Join(custom.Config.DeployRoot, "core", "assets")
}
func (custom *Custom) FooterPath() string {
return filepath.Join(custom.CustomAssetsPath(), "footer.html")
func (custom *Custom) CustomAssetPath(name string) string {
return filepath.Join(custom.CustomAssetsPath(), name)
}
func (custom *Custom) BackupName() string { return "custom" }