diff --git a/main.go b/main.go index 6a88662..fca3419 100644 --- a/main.go +++ b/main.go @@ -66,7 +66,12 @@ func loadPosts(dir []os.DirEntry) ([]Post, error) { } for _, file := range files { - fmt.Printf("Parsed: '%s'\n", file.Frontmatter.Title) + title := file.Frontmatter.Title + if title == "" { + fmt.Printf("Parsed an untitled post\n") + } else { + fmt.Printf("Parsed: '%s'\n", file.Frontmatter.Title) + } } return files, nil