Created
April 4, 2012 01:04
-
-
Save ruprict/2296858 to your computer and use it in GitHub Desktop.
This file contains 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 RemoveExtension | |
def remove_extension(input) | |
input.gsub(/\.\w+\Z/, '') | |
end | |
end | |
end | |
Liquid::Template.register_filter(Jekyll::RemoveExtension) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment