summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-17 10:47:11 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-17 11:34:32 +0100
commitd5a0b6bbbc83a3e274c62ed397a293f04ee8d241 (patch)
tree2ff65eb4f678f08c5453b4fcf5ab4be59e793df9 /hugolib/site.go
parent5178cd13a7da3c5f5ec5d3217c9e40fc0be7152a (diff)
hugolib: Remove "double layout" lookup
Fixes #5390
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index cf8b3a28d..2fd9f17ee 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1648,36 +1648,6 @@ func (s *Site) errorCollator(results <-chan error, errs chan<- error) {
close(errs)
}
-func (s *Site) appendThemeTemplates(in []string) []string {
- if !s.PathSpec.ThemeSet() {
- return in
- }
-
- out := []string{}
- // First place all non internal templates
- for _, t := range in {
- if !strings.HasPrefix(t, "_internal/") {
- out = append(out, t)
- }
- }
-
- // Then place theme templates with the same names
- for _, t := range in {
- if !strings.HasPrefix(t, "_internal/") {
- out = append(out, "theme/"+t)
- }
- }
-
- // Lastly place internal templates
- for _, t := range in {
- if strings.HasPrefix(t, "_internal/") {
- out = append(out, t)
- }
- }
- return out
-
-}
-
// GetPage looks up a page of a given type for the given ref.
// In Hugo <= 0.44 you had to add Page Kind (section, home) etc. as the first
// argument and then either a unix styled path (with or without a leading slash))