His Deeds Are Dust

Hugo Codeberg Logo

· 152 words · 1 minutes to read

Notes on adding the Codeberg link to my site, built with Hugo.

The Ananke theme doesn’t (yet) include Codeberg, so I downloaded the black and white Codeberg logo and placed this in themes/ananke/assets/ananke/socials/codeberg.svg.

There are two apparent problems with this logo though:

  1. Default logo is whiter than other social icons
  2. Link says “Codeberg logo” on hover

I can fix (2) by removing <title> element from svg. But this doesn’t fix (1).

Googling “codeberg logo for font awesome” leads me to Codeberg Design issue 13 where “mray” (Robert Martinez) has produced a solely black and white version. Copied this to same place and removed <title> element again.

https://codeberg.org/Codeberg/Design says that “Codeberg blue” is #2185d0, so I tried this as the hover colour but decided that it didn’t really fit, so I ended up using white.

The configuration file YAML ends up as:

params:
  ananke_socials:
  - name: codeberg
    url: https:/codeberg.org/hisdeedsaredust
    label: Codeberg
    color: "#ffffff"