diff --git a/hugo.go b/hugo.go index f2e6c32..edab02a 100644 --- a/hugo.go +++ b/hugo.go @@ -61,7 +61,7 @@ func getPostInfo(post string) (postInfo, error) { case "title": info.Title = splitLine[1] case "date": - t, err := time.Parse(time.RFC3339, splitLine[1]) + t, err := time.Parse(time.DateOnly, splitLine[1]) if err != nil { continue }