Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 291 Bytes
module Jekyll
module ReadMoreFilter
def read_more(text, url)
text = '' if text.nil?
text = text.to_str
"#{text}<a href=\"#{url}\" rel=\"nofollow\" class=\"read-more\">read more &raquo;</a>"
end
end
end
Liquid::Template.register_filter(Jekyll::ReadMoreFilter)