public
Last active

  • Download Gist
_plugin/summarize.rb
Ruby
1 2 3 4 5 6 7
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end

What does this plugin do?

Hum, it removes everything after

/\s*<div id="extended">/

(or whichever regexp you pass on)

Congratulations! Simple and great plugin!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.