func (d *Dir) Sub(name string) *Dir {
	var listings []string
	if len(d.listings) > 0 {
		listings = d.listings[1:]
	}
	return &Dir{
		Site:     d.Site,
		Section:  d.Section,
		name:     name,
		listings: listings,
		layout:   d.layout,
		content:  d.content,
		tmpls:    d.tmpls,
	}
}
// Sub creates a subdirectory of this directory
Sub creates a subdirectory of this directory
// Sub creates a subdirectory of this directory
func (d *Dir) Sub(name string) *Dir {
	var listings []string
	if len(d.listings) > 0 {
		listings = d.listings[1:]
	}
	return &Dir{
		Site:     d.Site,
		Section:  d.Section,
		name:     name,
		listings: listings,
		layout:   d.layout,
		content:  d.content,
		tmpls:    d.tmpls,
	}
}
func ( d * Dir ) Sub ( name string ) * Dir { var listings [ ] string if len ( d . listings ) > 0 { listings = d . listings [ 1 : ] } return & Dir { Site : d . Site , Section : d . Section , name : name , listings : listings , layout : d . layout , content : d . content , tmpls : d . tmpls , } }
Sub creates a subdirectory of this directory
Sub creates a subdirectory of this directory