mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -712,6 +712,7 @@ func (s *TemplateStore) RefreshFiles(include func(fi hugofs.FileMetaInfo) bool)
|
||||
}
|
||||
|
||||
func (s *TemplateStore) HasTemplate(templatePath string) bool {
|
||||
templatePath = strings.ToLower(templatePath)
|
||||
templatePath = paths.AddLeadingSlash(templatePath)
|
||||
return s.templatesByPath.Contains(templatePath)
|
||||
}
|
||||
|
Reference in New Issue
Block a user