pattex / jekyll-tagging

Jekyll plugin to automatically generate a tag cloud and tag pages.
385 stars 76 forks source link

[Feature] Allow spaces to be escaped in URLs #27

Closed rileyjshaw closed 9 years ago

rileyjshaw commented 9 years ago

For tags like:

tags:
 - multi word
 - other tag

URLs show up as:

http://site.com/path/multi%20word/     # pretty

or as:

http://site.com/path/other%20tag.html  # default

It would be great to have the option of formatting them with hyphens, underscores, etc. like:

http://site.com/path/multi-word/

or:

http://site.com/path/other_tag.html

or even just eliminating spaces from the URL completely...

nhoizey commented 9 years ago

I agree. And I think hyphens would be the best for SEO.

rileyjshaw commented 9 years ago

@pattex any thoughts?

pattex commented 9 years ago

Done. You may want to check if it works out for you, if the delay was not to big.

rileyjshaw commented 9 years ago

@pattex thanks for looking into this! It doesn't seem to be working with tag_permalink_style: pretty, am I missing something?

pattex commented 9 years ago

You are absolutely right. I fixed that.

rileyjshaw commented 9 years ago

Just tested it out, seems to be working. Thanks!!