URI: 
       Return early from appendThemeTemplates - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 3529152efe321b2c26636c2f04a508cf9133991c
   DIR parent c50c66879d7140311bcd6bfcb3fb5122d2b3f809
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Thu, 17 Mar 2016 23:36:11 +0100
       
       Return early from appendThemeTemplates
       
       Diffstat:
         M hugolib/site.go                     |      40 ++++++++++++++++---------------
       
       1 file changed, 21 insertions(+), 19 deletions(-)
       ---
   DIR diff --git a/hugolib/site.go b/hugolib/site.go
       @@ -1448,31 +1448,33 @@ func errorCollator(results <-chan error, errs chan<- error) {
        }
        
        func (s *Site) appendThemeTemplates(in []string) []string {
       -        if s.hasTheme() {
       -                out := []string{}
       -                // First place all non internal templates
       -                for _, t := range in {
       -                        if !strings.HasPrefix(t, "_internal/") {
       -                                out = append(out, t)
       -                        }
       +        if !s.hasTheme() {
       +                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)
       -                        }
       +        // 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)
       -                        }
       +        // Lastly place internal templates
       +        for _, t := range in {
       +                if strings.HasPrefix(t, "_internal/") {
       +                        out = append(out, t)
                        }
       -                return out
                }
       -        return in
       +        return out
       +
        }
        
        type taxRenderInfo struct {