Created
December 7, 2010 08:55
-
-
Save mat813/731597 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
module Filters | |
def summarize(str, splitstr = /\s*<div id="extended">/) | |
str.split(splitstr)[0] | |
end | |
end | |
end |
Hum, it removes everything after
/\s*<div id="extended">/
(or whichever regexp you pass on)
Congratulations! Simple and great plugin!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does this plugin do?