mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Add handling for publishDates (which will be ignored if in the future). Fixed #260
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user