custom: Allow override of home page
This commit is contained in:
parent
729b9cfb51
commit
cf59bd7db7
4 changed files with 45 additions and 20 deletions
|
|
@ -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" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue