dbtek/dbyll

tags and categories with spaces get linked incorrectly

Closed this issue · 1 comments

I imported posts from my WordPress blog and used the Dbyll theme. I noticed that on the tags.html and categories.html pages, not all the links would work. I fixed this by using | replace:' ','-' on the following:

categories.html

<a href="{{ site.BASE_PATH }}/{{ site.categories_path }}#{{ category | replace:' ','-' }}-ref" data-toggle="tab">

<a href="{{ site.BASE_PATH }}/{{ site.categories_path }}#{{ category[0] | replace:' ','-' }}-ref" data-toggle="tab">

<div class="tab-pane" id="{{ category[0] | replace:' ','-' }}-ref">

tags.html

<a href="#{{ tag | replace:' ','-' }}-ref" data-toggle="tab">

<a href="#{{ tag[0] | replace:' ','-' }}-ref" data-toggle="tab">

<div class="tab-pane" id="{{ tag[0] | replace:' ','-' }}-ref">

Hi!
Thanks Sarah. How did i miss it ? 👍
Could you please drop a pull request to fix the issue.