mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
support for futre/draft summary info output
This commit is contained in:
@@ -304,6 +304,17 @@ func (page *Page) ShouldBuild() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (page *Page) IsDraft() bool {
|
||||
return page.Draft
|
||||
}
|
||||
|
||||
func (page *Page) IsFuture() bool {
|
||||
if page.PublishDate.Before(time.Now()) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (p *Page) Permalink() (string, error) {
|
||||
link, err := p.permalink()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user