pattex / jekyll-tagging

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

Problem when a tag is part of title #58

Open mehdisadeghi opened 7 years ago

mehdisadeghi commented 7 years ago

With most recent version of Jekyll (3.3.1) and jekyll-tagging from master (a981f78) if I run jekyll doctor I get the following error:

      Conflict: The URL '/home/mehdi/Projects/mehdix.ir/_site/tag/ssl.html' is the destination for the following pages: tag/ssl.html, tag/ssl.html
      Conflict: The URL '/home/mehdi/Projects/mehdix.ir/_site/tag/yaml.html' is the destination for the following pages: tag/yaml.html, tag/yaml.html

By carefully inspecting my posts I realized this problem occurs when a tag is part of the title. In my case, the word YAML was a tag and at the same time part of the title.

hjerpbakk commented 5 years ago

I encountered this problem when having two tags differencing only by their case. I had both Nuget and nuget:

Conflict: The URL '/srv/jekyll/_site/tag/nuget.html' is the destination for the following pages: tag/nuget.html, tag/nuget.htm

Agreeing on the casing made the problem disappear.

mehdisadeghi commented 5 years ago

It's possible to change the code to have tags with different cases, jekyll doctor will complain however:

Warning: The following URLs only differ by case. On a case-insensitive file system one of the URLs will be overwritten by the other: /home/ms/Projects/mx/jekyll-theme-mehdix-rtl/_site/tag/https.html, /home/ms/Projects/mx/jekyll-theme-mehdix-rtl/_site/tag/HTTPS.html