mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
Nice little word count
This commit is contained in:
@@ -12,6 +12,10 @@ module Jekyll
|
||||
def xml_escape(input)
|
||||
input.gsub("<", "<").gsub(">", ">")
|
||||
end
|
||||
|
||||
def number_of_words(input)
|
||||
input.split.length
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user