techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.3K
active users

ZERO GmbH

As you might know, our website zero-iee.com is a static web site generated by Hugo.

We want to use symbols such as a check mark on our pages in the future. The easiest way to do this is to use the appropriate UTF-8 character code in our texts.

Unfortunately, however, web browsers display the symbols differently - the Edge browser on Windows, for example, displays them in purple (dark mode) and Firefox onUbuntu in gray. This does not always match our color scheme.

That's why we came up with a workaround for Hugo that simply replaces all UTF-8 checkmarks with an SVG graphic and replaces them in the text of the page ($content).

@zeroiee That's clever, but you may want to add an alt attribute for accessibility