do not check description file for theme-custom (#437)

* do not check description file for theme-custom

* deprecation note
This commit is contained in:
UUBulb 2024-10-18 12:26:59 +08:00 committed by GitHub
parent fc9f1b6bcc
commit c58c4f866a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,6 +96,13 @@ func loadThirdPartyTemplates(tmpl *template.Template) *template.Template {
}
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-") {
// load dashboard templates, ignore desc file
ret = loadTemplates(ret, themeDir)