diff --git a/main.go b/main.go index 9377cd1917dd4fbc286ee01542180c661dcf2fd8..f5d5a5f519a12a8be583979a22f7749a9eb5b468 100644 --- a/main.go +++ b/main.go @@ -361,6 +361,9 @@ func getPostInfo(input string) (string, string, string) { // Get the read time of the post func getReadTime(content string) int { wordCount := len(strings.Fields(content)) + if wordCount/200 == 0 { + return 1 + } return wordCount / 200 }