diff --git a/kiln.go b/kiln.go index dfeb437..016dfbe 100644 --- a/kiln.go +++ b/kiln.go @@ -125,7 +125,7 @@ type Page struct { Content string } -var titleRE = regexp.MustCompile("^# ?([^#\r\n]+)") +var titleRE = regexp.MustCompile("^# ?([^#\r\n]+)\r?\n?\r?\n?") func NewPage(path string, content string) *Page { // Try to parse the date from the page filename