Class: Jekyll::Renderer
- Inherits:
-
Object
- Object
- Jekyll::Renderer
- Defined in:
- lib/jekyll/patches/jekyll/renderer.rb
Instance Method Summary collapse
Instance Method Details
#permalink_ext ⇒ Object
6 7 8 9 10 11 |
# File 'lib/jekyll/patches/jekyll/renderer.rb', line 6 def permalink_ext if document.permalink && !document.permalink.end_with?("/") ext_match = document.permalink.match(/\.[\w+-]+$/) ext_match[0] unless ext_match.nil? end end |