mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
23 hours ago 98cea2ca8c5d3c425597f4fdfeca33039e87bc78
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Friday, June 5, 2026 01:35 +0200
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Friday, June 5, 2026 01:35 +0200
commit98cea2ca8c5d3c425597f4fdfeca33039e87bc78
tree a920e28e39140f246cc82cf0a57d56533869fcca tree | zip | gz
parent 399075ed6fdb2abd7afe04019b1b912e4099773c view | diff
fix: apply configured social colours on hover for follow and share (#861)

The generated per-network hover CSS never matched any networks: it filtered
the social networks map with `where ... "slug" "in"`, which yields nothing for
a Params map, so no per-network rules were emitted and icons kept the default
grey on hover.

Build the rules by ranging the configured network slugs and indexing into the
networks map (as the follow/share partials already do), covering the union of
follow and share networks, and set both `color` and `fill` so the monochrome
SVG icons pick up the configured brand colour on hover.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 files modified
29 ■■■■ changed files
layouts/_partials/site-style.html 29 ●●●● diff | view | raw | blame | history