mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 09:38:13 -05:00
do not check description file for theme-custom (#437)
* do not check description file for theme-custom * deprecation note
This commit is contained in:
parent
fc9f1b6bcc
commit
c58c4f866a
@ -96,6 +96,13 @@ func loadThirdPartyTemplates(tmpl *template.Template) *template.Template {
|
|||||||
}
|
}
|
||||||
|
|
||||||
themeDir := theme.Name()
|
themeDir := theme.Name()
|
||||||
|
if themeDir == "theme-custom" {
|
||||||
|
// for backward compatibility
|
||||||
|
// note: will remove this in future versions
|
||||||
|
ret = loadTemplates(ret, themeDir)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(themeDir, "dashboard-") {
|
if strings.HasPrefix(themeDir, "dashboard-") {
|
||||||
// load dashboard templates, ignore desc file
|
// load dashboard templates, ignore desc file
|
||||||
ret = loadTemplates(ret, themeDir)
|
ret = loadTemplates(ret, themeDir)
|
||||||
|
Loading…
Reference in New Issue
Block a user