I am trying to change the styles in my index.html depending on the content of a parameter that I set in my posts.
For example, if I tag a post as code (type: code) I want to color the text code as yellow in the index.html. If I tag a post as other (type: other) I want to color the text high in the index.html in orange.
-Why it was not working with JS? Is it better to avoid JS in Hugo?
-I’d like to create a tag with each of these types. For example, if I click on ‘code’ I want to see all the articles tagged as ‘code’. Do you have any recommendation or advice about how to accomplish that?
Sorry for the delay. Here it is the repo.
I took yinyang template as my starting point and I was trying to create a list when clicking in the tags and another list when clicking in the main category (the colored one).
Thanks! It was an error with the commit. Submitted now but still showing a blank page when I click in the tags.
Didn’t try yet to create an interior page for the categories as I cannot solve the first issue. Anyway, should I create another .html in _default for the categories?
Thanks so much! Solved that.
I guess my last question is why I am getting the names of the tags when using .Title in the interior tag pages instead of the titles of the articles. Here it is the link . Sorry, the code is a bit messy after trying different options from the documentation and your Vanilla template.
I think it has to do with the terms that have octothorps in them. The other terms render as expected. I don’t have a solution, but giving a secondary report.