mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Return early from appendThemeTemplates
This commit is contained in:
@@ -1448,7 +1448,10 @@ func errorCollator(results <-chan error, errs chan<- error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Site) appendThemeTemplates(in []string) []string {
|
func (s *Site) appendThemeTemplates(in []string) []string {
|
||||||
if s.hasTheme() {
|
if !s.hasTheme() {
|
||||||
|
return in
|
||||||
|
}
|
||||||
|
|
||||||
out := []string{}
|
out := []string{}
|
||||||
// First place all non internal templates
|
// First place all non internal templates
|
||||||
for _, t := range in {
|
for _, t := range in {
|
||||||
@@ -1471,8 +1474,7 @@ func (s *Site) appendThemeTemplates(in []string) []string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return out
|
return out
|
||||||
}
|
|
||||||
return in
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type taxRenderInfo struct {
|
type taxRenderInfo struct {
|
||||||
|
Reference in New Issue
Block a user