Skip to content

feat: add Substack social link support#3528

Open
asboyer wants to merge 2 commits intoalshedivat:mainfrom
asboyer:feat/add-substack-social-support
Open

feat: add Substack social link support#3528
asboyer wants to merge 2 commits intoalshedivat:mainfrom
asboyer:feat/add-substack-social-support

Conversation

@asboyer
Copy link
Contributor

@asboyer asboyer commented Feb 15, 2026

Summary

  • Add fill and hover fill rules for SVG elements in social contact icons (about page and navbar) so inline SVG icons match the existing font icon color/hover behavior
  • Add substack_username to the schema.org sameAs generator in metadata.liquid

Depends on george-gca/jekyll-socials#4 which adds substack_username as a built-in social platform with an inline SVG icon to the jekyll-socials plugin.

Closes #3527

How it works

Once the jekyll-socials plugin is updated, users simply add to _data/socials.yml:

substack_username: your_username

The plugin renders an inline SVG with fill='currentColor', and the CSS changes in this PR ensure the SVG inherits the correct text color and theme color on hover — matching the behavior of existing font icons (i::before rules).

Why an inline SVG?

Font Awesome does not provide a Substack icon. The request (FortAwesome/Font-Awesome#16586) was open for 5 years before being closed without resolution. The jekyll-socials plugin introduces an SVG_ICONS category for platforms lacking font library support, using the official Substack logo path from Simple Icons.

Screenshots

Light mode

Screenshot 2026-02-14 at 10 22 03 PM

Light mode (hover)

Screenshot 2026-02-14 at 10 22 12 PM

Dark mode

Screenshot 2026-02-14 at 10 37 52 PM

Dark mode (hover)

Screenshot 2026-02-14 at 10 38 00 PM

Test plan

  • Add substack_username: testuser to _data/socials.yml and verify the icon renders with correct color and hover behavior
  • Verify icon color matches other social icons in both light and dark mode
  • Verify hover transitions to theme color
  • Verify schema.org sameAs metadata includes the Substack URL
  • Verify existing social icons are unaffected

The jekyll-socials plugin now supports inline SVG icons (e.g., Substack)
via fill='currentColor'. Since the theme styles font icons through
i::before color rules, SVGs need equivalent fill rules to match.

Add fill: var(--global-text-color) and hover fill:
var(--global-theme-color) to SVG elements within social contact icons
in both the about page and navbar.
Add substack_username case to the social links generator in
metadata.liquid so Substack profiles are included in the schema.org
sameAs array for SEO and structured data.
@netlify
Copy link

netlify bot commented Feb 15, 2026

Deploy Preview for relaxed-lollipop-b6bc17 failed. Why did it fail? →

Name Link
🔨 Latest commit 9694673
🔍 Latest deploy log https://app.netlify.com/projects/relaxed-lollipop-b6bc17/deploys/6991422a5de263000828b4e2

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Substack social link support

1 participant