Open eamaral92 opened 8 years ago
The solution would be to replace the current implementation of jekyll_tagging_slug
in the Helper module
https://github.com/pattex/jekyll-tagging/blob/76fbc51bc644c660144ed9f6a1b0a854b23ee0f8/lib/jekyll/tagging.rb#L15
with the following line
Jekyll::Utils::slugify(str.to_s, mode: 'latin', cased: true)
What you can to work around this without forking the plugin (based on the activity it seems unlikely this will get fixed):
_plugins
.In the _plugins
folder, create a new file with arbitrary name (e.g. tagging.rb
) and the following content
require 'jekyll/tagging'
module Jekyll
module Helpers
def jekyll_tagging_slug(str)
Jekyll::Utils::slugify(str.to_s, mode: 'latin', cased: true)
end
end
end
jekyll/tagging
from the gems
/plugins
in your _config.yml
, or require 'jekyll/tagging'
from _plugins/ext.rb
, which is the method described in this repository README.
I've made a tag cloud on Jekyll with jekyll-tagging plugin. The plugin works fine, but when o need to iterate trough tags and append the name to a url, the accents still there, wich causes a error, even with the slugfy method. I'm new with RUBY and i didn't found any native RUBY method to remove the accents, even on Jekyll.