func (d *Dir) renderIndex(src, dst *content.Dir, force bool) error {
	index, err := NewIndex(d)
	if err != nil {
		if err == ErrNoListing {
			return nil
		}
		return err
	}
	return index.Render(src, dst, force)
}
// renderIndex generates an index page if needed
renderIndex generates an index page if needed
// renderIndex generates an index page if needed
func (d *Dir) renderIndex(src, dst *content.Dir, force bool) error {
	index, err := NewIndex(d)
	if err != nil {
		if err == ErrNoListing {
			return nil
		}
		return err
	}
	return index.Render(src, dst, force)
}
func ( d * Dir ) renderIndex ( src , dst * content . Dir , force bool ) error { index , err := NewIndex ( d ) if err != nil { if err == ErrNoListing { return nil } return err } return index . Render ( src , dst , force ) }
renderIndex generates an index page if needed
renderIndex generates an index page if needed