func NewPage(d *Dir, p *content.Page) (page *Page, err error) {
	name, _, err := p.OutputPath()
	if err != nil {
		return
	}
	page = &Page{
		Site:     d.Site,
		Section:  d.Section,
		Page:     p,
		output:   name,
		layout:   d.layout,
		template: d.content,
	}
	return
}
// NewPage creates a new Page
NewPage creates a new Page
// NewPage creates a new Page
func NewPage(d *Dir, p *content.Page) (page *Page, err error) {
	name, _, err := p.OutputPath()
	if err != nil {
		return
	}
	page = &Page{
		Site:     d.Site,
		Section:  d.Section,
		Page:     p,
		output:   name,
		layout:   d.layout,
		template: d.content,
	}
	return
}
func NewPage ( d * Dir , p * content . Page ) ( page * Page , err error ) { name , _ , err := p . OutputPath ( ) if err != nil { return } page = & Page { Site : d . Site , Section : d . Section , Page : p , output : name , layout : d . layout , template : d . content , } return }
NewPage creates a new Page
NewPage creates a new Page