Skip to content

@mat813 /summarize.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end
@joshkerr

What does this plugin do?

@mat813
Owner

Hum, it removes everything after

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

(or whichever regexp you pass on)

@arademaker

Congratulations! Simple and great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.