func NewSectionDir(section *Section) (dir *Dir, err error) {
	content, err := section.tmpls.Get(section.Config.Templates.Content)
	if err != nil {
		return
	}
	dir = &Dir{
		Site:     section.Site,
		Section:  section.Config,
		name:     section.name,
		listings: section.Config.Templates.Listings,
		layout:   section.layout,
		content:  content,
		tmpls:    section.tmpls,
		section:  true,
	}
	return
}
// NewSectionDir creates a new Section
NewSectionDir creates a new Section
// NewSectionDir creates a new Section
func NewSectionDir(section *Section) (dir *Dir, err error) {
	content, err := section.tmpls.Get(section.Config.Templates.Content)
	if err != nil {
		return
	}
	dir = &Dir{
		Site:     section.Site,
		Section:  section.Config,
		name:     section.name,
		listings: section.Config.Templates.Listings,
		layout:   section.layout,
		content:  content,
		tmpls:    section.tmpls,
		section:  true,
	}
	return
}
func NewSectionDir ( section * Section ) ( dir * Dir , err error ) { content , err := section . tmpls . Get ( section . Config . Templates . Content ) if err != nil { return } dir = & Dir { Site : section . Site , Section : section . Config , name : section . name , listings : section . Config . Templates . Listings , layout : section . layout , content : content , tmpls : section . tmpls , section : true , } return }
NewSectionDir creates a new Section
NewSectionDir creates a new Section