blorg: ignore draft pages
This commit is contained in:
parent
64b2b22270
commit
16ccafe8a3
2 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,9 @@ func NewPage(c *Config, path string, info os.FileInfo) (*Page, error) {
|
|||
}
|
||||
|
||||
func (p *Page) Render(path string) error {
|
||||
if p.BufferSettings["DRAFT"] != "" {
|
||||
return nil
|
||||
}
|
||||
f, err := os.Create(path)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue