Skip to content

Instantly share code, notes, and snippets.

@mat813
Created December 7, 2010 08:55
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mat813/731597 to your computer and use it in GitHub Desktop.
Save mat813/731597 to your computer and use it in GitHub Desktop.
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end
@joshkerr
Copy link

What does this plugin do?

@mat813
Copy link
Author

mat813 commented Sep 26, 2011

Hum, it removes everything after

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

(or whichever regexp you pass on)

@arademaker
Copy link

Congratulations! Simple and great plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment