janraasch / hugo-bearblog

🧸 A Hugo theme based on »Bear Blog«. Free, no-nonsense, super-fast blogging. This theme now includes a dark color scheme to support dark mode 🦉 ⬛️!
https://themes.gohugo.io/hugo-bearblog/
MIT License
902 stars 224 forks source link

Remove Line Under Links #90

Closed brandonprajogo closed 7 months ago

brandonprajogo commented 7 months ago

Hello. I'm using your theme with my site and it looks great!

But do you know how to remove line under links to make it look nicer? Just like original Bear Blog? Thanks.

hugo bear blog bear blog
kristianfreeman commented 7 months ago

@brandonprajogo Create a new file called layouts/partials/custom_head.html, and add:

<style>
a {
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}
</style>
brandonprajogo commented 7 months ago

Ok, thanks.

brandonprajogo commented 7 months ago

Apparently, removing line under links affect accessibility score on PageSpeed. What can I do to solve this?

pagespeed
mansoorbarri commented 7 months ago

it says right there, the links just rely on colour. maybe add the line when the user hovers or something