summaryrefslogtreecommitdiffstats
path: root/commands/convert.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/convert.go')
-rw-r--r--commands/convert.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/convert.go b/commands/convert.go
index e7ba572bc..d0a46a641 100644
--- a/commands/convert.go
+++ b/commands/convert.go
@@ -143,7 +143,7 @@ func (cc *convertCmd) convertAndSavePage(p page.Page, site *hugolib.Site, target
}
}
- if p.File() == nil {
+ if p.File().IsZero() {
// No content file.
return nil
}