Footer Social Icons

The footer's social-icon row and Social Media column, and how to add a new platform — the partials/social pattern, the include, and the optional brand-color hover.

≈ 3 min read 591 words Updated 2026-11-28

On this page

The site footer includes a footer__socials row of labeled monochrome icons and a Social Media text group in the full navigation grid. The row lives in themes/bifrost/templates/partials/footer.html; each icon has a partial under partials/social/.

The footer is an exhaustive, always-visible navigation area with no More links disclosure. The desktop grid has a wide introduction and four link columns containing Get started / Start reading, Sections / Press, Community / Social Media, and Development / Privacy & terms. Between 641px and 1100px the introduction stays on the left, spanning two rows, with all four link groups arranged in two columns to its right. At 640px and below all columns stack for phone screens.

The original spacing is restored: content top margins of 3rem on desktop, 2rem below 768px, and 1.5rem below 600px, with 1rem between link items. The decorative rainbow stays 13rem tall at every viewport width, plus any bottom safe-area inset. Social icons, the license, and desktop language/theme controls remain in the bottom bar. The introduction uses the localized elevatorPitch.

The RSS link uses /rss.xml in English and the localized /articles/rss.xml in translated editions. Avoid language-root feeds: they were absent in production and empty in a newer local build. See feed discovery.

Adding a platform#

  1. Icon partial — create partials/social/<name>.html: an <a class="footer__social-link"> (add a footer__social-link--<name> modifier if you want a brand hover) wrapping a 24×24 SVG with fill="currentColor" (or stroke="currentColor"), plus href, target="_blank" rel="noopener", and an aria-label. Keep it monochrome so it inherits the footer text colour and inverts cleanly in dark mode.
  2. Include it in the footer__socials row in footer.html.
  3. Brand hover (optional) — in sass/layout/_footer.scss, under &__social-link, add &--<name>:hover { color: <brand>; }. Because the SVG is fill="currentColor", tinting the link colour tints the mark.

Example: Hugging Face#

partials/social/huggingface.html uses the simple-icons mark (fill="currentColor"), links to huggingface.co/wheelofheaven, sits in the socials row after GitHub, and its --huggingface:hover rule tints the mark Hugging Face yellow (#ffd21e) on hover.

Which icons get a colour. Only platforms with a real brand colour carry a hover tint — Telegram (blue), YouTube (red), Open Collective (blue), Hugging Face (yellow). X and GitHub stay monochrome: they’re black-and-white brands, so a brand-colour hover would be arbitrary; they keep only the background + lift.

Folding on phones#

Up to 768px each of the footer’s link lists folds under its heading. static/js/footer-fold.js adds .footer--folds to the footer and turns each .footer__col-title that is followed by a ul into a toggle (role="button", aria-expanded, aria-controls); the rules are at the end of sass/layout/_footer.scss. All lists start closed, which takes the phone footer from about 3,600px to about 1,700px. Without the script, and from 769px up, every list is open and the headings are plain headings again. A new group needs nothing: any heading with that class followed by a list is picked up.

The project description above the lists is clamped to three lines on phones and opens on tap (.footer__muted--open). It is deliberately not given a button role: its accessible name would be the whole paragraph, and the clamp is visual only, so assistive technology reads the full text either way.

The fold arrow is drawn with physical borders (border-right, border-bottom). With logical borders the rotated arrow turned sideways on right-to-left pages.

Edit this page on GitHub