public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9
module Jekyll
module RemoveExtension
def remove_extension(input)
input.gsub(/\.\w+\Z/, '')
end
end
end
 
Liquid::Template.register_filter(Jekyll::RemoveExtension)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.