blorg: ignore draft pages

This commit is contained in:
Niklas Fasching 2020-07-24 18:45:22 +02:00
parent 64b2b22270
commit 16ccafe8a3
2 changed files with 6 additions and 0 deletions

View file

@ -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