Add handling for publishDates (which will be ignored if in the future). Fixed #260

This commit is contained in:
spf13
2014-05-29 00:48:40 -04:00
parent 4ebaec8906
commit c502f078bc
4 changed files with 81 additions and 3 deletions

View File

@@ -344,7 +344,7 @@ func (s *Site) CreatePages() (err error) {
return err
}
if viper.GetBool("BuildDrafts") || !page.Draft {
if page.ShouldBuild() {
s.Pages = append(s.Pages, page)
}