cgmartin / hexo-theme-bootstrap-blog

A simple Bootstrap v3 blog theme for Hexo
MIT License
104 stars 61 forks source link

Tags with uppercase #9

Open ntot opened 8 years ago

ntot commented 8 years ago

Hi Cris! First of that you so much for the boostrap theme! Helped me a lot in getting started with Hexo. I just have a question that I have been trying to figure out but just cant...

I have 2 tags in my hello-world.md file:

Which outputs: /tags/pizza and /tags/pasta - All good but I wanted to write Pizza in my tags menu with a capital letter but keep the lower case p in the URL, I can do this with CSS but I like how you did it in your theme. After looking at all the files I just can't find how you have done this??

So just to confirm I would like to have the tags in my front matter:

I hope I made sense, Thanks again! Kind regards, Hanna

cgmartin commented 8 years ago

Hi @ntot, glad this helped!

I don't think there was any custom work done for the tag behavior. Here's what I did for the demo site:

Is using capitalized tags in front-matter causing the URL links to be capitalized as well? If so, let me know which hexo version you are using and I'll try to reproduce.

Cheers