reuixiy / hugo-theme-meme

😝 You can’t spell awesome without MemE!

Home Page:https://io-oi.me/hugo-theme-meme

Repository from Github https://github.comreuixiy/hugo-theme-memeRepository from Github https://github.comreuixiy/hugo-theme-meme

Change unvisited hyperlink colour in single page

acheronte opened this issue · comments

First of all, fantastic theme! And great documentation too.

But I have stumbled on the following issue, as per the title: I need to change the colour of unvisited hyperlinks in a single page.

What I did is create a _custom.scss which changed the colour of the anchor links, but it changed it for the entire site (including home page with the list of posts, and categories page, etc.).

At the moment hyperlinks are barely visible (the underline is noticeable but not immediately), unless when hovering.

In essence, I would like to have the same colour you get while hovering, but as default state and only in a single blog entry.

If this has already been addressed, feel free to close.

Hi @acheronte,

Just refer to the following code:

.post-body {
margin-top: 5em !important;
a {
text-decoration: underline;
text-decoration-color: var(--color-contrast-low);
&:hover {
text-decoration-color: alpha(var(--color-primary), 0.5);
}
}
}

Hope this helps.

I just tried that and it worked like a charm. Thanks!