Nice little word count
This commit is contained in:
parent
2118b55045
commit
111f76b2fd
|
@ -12,6 +12,10 @@ module Jekyll
|
||||||
def xml_escape(input)
|
def xml_escape(input)
|
||||||
input.gsub("<", "<").gsub(">", ">")
|
input.gsub("<", "<").gsub(">", ">")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def number_of_words(input)
|
||||||
|
input.split.length
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue