Removing GetSection

Using GetXXX is not idiomatic to Go.  Also added a bunch of unit testing
around this method.
This commit is contained in:
Noah Campbell
2013-08-14 15:22:57 -07:00
parent ae7112977d
commit 599e6672f7
4 changed files with 78 additions and 19 deletions

View File

@@ -25,7 +25,6 @@ import (
"path/filepath"
"strings"
"time"
//"sync"
)
var DefaultTimer = nitro.Initalize()
@@ -381,8 +380,7 @@ func (s *Site) BuildSiteMeta() (err error) {
}
for i, p := range s.Pages {
sect := p.GetSection()
s.Sections.Add(sect, s.Pages[i])
s.Sections.Add(p.Section, s.Pages[i])
}
for k, _ := range s.Sections {