[openstreetmap/openstreetmap-website] Add Codeberg social link icon and URL pattern support (#6814) (PR #6855)

Pablo Brasero notifications at github.com
Thu Mar 12 15:07:35 UTC 2026


pablobm left a comment (openstreetmap/openstreetmap-website#6855)

I just had a look. I can see the icon in dark mode, but not in light mode:

<img width="296" height="115" alt="Example of social link on light mode. No icon showing." src="https://github.com/user-attachments/assets/279519a1-0bcb-41ab-bc4c-0b443a33b8ad" />
<img width="296" height="115" alt="Example of social link on dark mode. The Codeberg icon is showing." src="https://github.com/user-attachments/assets/83cf3b4d-0520-4fb8-9667-3049bfe0ee01" />

Re: optimising the inline SVGs. Could it be that they are actually being optimised? The docs for `inline_svg` say:

> This gem adds Rails helper methods (`inline_svg_tag` and `inline_svg_pack_tag`) that read an SVG document (via Sprockets or Shakapacker, so works with the Rails Asset Pipeline), applies a CSS class attribute to the root of the document and then embeds it into a view.

In turn, [image_optim_rails](https://github.com/toy/image_optim_rails) works with Sprockets. Therefore the inline SVGs might be benefitting?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6855#issuecomment-4047499697
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6855/c4047499697 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260312/c843efad/attachment.htm>


More information about the rails-dev mailing list