Skip to content

Commit

Permalink
remove hugo generator tag
Browse files Browse the repository at this point in the history
  • Loading branch information
amaurycatelan committed Mar 31, 2017
1 parent 02ac319 commit 9621c32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -2343,11 +2343,11 @@ func (s *Site) renderAndWritePage(name string, dest string, d interface{}, layou
}

// For performance reasons we only inject the Hugo generator tag on the home page.
if n, ok := d.(*Node); ok && n.IsHome {
if !viper.GetBool("DisableHugoGeneratorInject") {
transformLinks = append(transformLinks, transform.HugoGeneratorInject)
}
}
// if n, ok := d.(*Node); ok && n.IsHome {
// if !viper.GetBool("DisableHugoGeneratorInject") {
// transformLinks = append(transformLinks, transform.HugoGeneratorInject)
// }
// }

var path []byte

Expand Down

0 comments on commit 9621c32

Please sign in to comment.