Module: Jekyll::Helpers

Included in:
Tagger, TaggingFilters
Defined in:
lib/jekyll/tagging.rb

Instance Method Summary collapse

Instance Method Details

#jekyll_tagging_slug(str) ⇒ Object

call-seq:

jekyll_tagging_slug(str) => new_str

Substitutes any diacritics in str with their ASCII equivalents, whitespaces with dashes and converts str to downcase.



14
15
16
# File 'lib/jekyll/tagging.rb', line 14

def jekyll_tagging_slug(str)
  str.to_s.replace_diacritics.downcase.gsub(/\s/, '-')
end