Change transformer order
authorNoah Campbell <noahcampbell@gmail.com>
Wed, 2 Oct 2013 23:07:25 +0000 (19:07 -0400)
committerNoah Campbell <noahcampbell@gmail.com>
Tue, 8 Oct 2013 16:42:03 +0000 (18:42 +0200)
hugolib/site.go

index 358a00edfcfa4533558fe5a8d7c2d38404c5cc96..85f0e9d901f4132c746a1ca6632b0bd107423d26 100644 (file)
@@ -557,8 +557,8 @@ func (s *Site) render(d interface{}, out string, layouts ...string) (err error)
        fmt.Println("Section is:", section)
 
        transformer := transform.NewChain(
-               &transform.AbsURL{BaseURL: s.Config.BaseUrl},
                &transform.NavActive{Section: section},
+               &transform.AbsURL{BaseURL: s.Config.BaseUrl},
        )
 
        renderReader, renderWriter := io.Pipe()