digitalcraftsman / hugo-steam-theme

Port of Tommaso Barbato's Ghost theme Steam to Hugo
MIT License
66 stars 51 forks source link

Some post descritpion are colored the same color of the theme #18

Open samuele-96 opened 7 years ago

samuele-96 commented 7 years ago

As I said it results that some post description are colored and some not. screenshot from 2017-05-08 19-51-20

Teebusch commented 7 years ago

Took me a while to find it, but it is an easy fix. The post excerpts are links, and thus will change their color once they have been visited. This is because all visited links inherit the color property from a:visited. So in a way this is expected behavior. However, I assume you want the description text of visited posts to be in the same dark grey color as that of unvisited ones.

Go to \layouts\partials\themes and open the file that corresponds to the color theme you have selected in config.toml (from your screenshot it seems to be blue-theme.html). Add a line that says: a.excerptlink:visited {color:inherit;}. To also get the hover effect you have to change the line that says
a:focus, a:hover {color: #2079b4} to a:focus, a:hover, a.excerptlink:hover {color: #2079b4}

Rebuild your site for the changes to take effect.

Edit: My inital fix didn't work. I made some chages. It should work now.

By the way, I'm not a web developer at all, and I don't know if this is the best solution. The css of this theme sems a little "stitched together" here and there. It would probably be worth to have a closer look and do some optimization.

Anyways, it's a fine looking theme :)