Skip to content

Add social share buttons to every post#26

Merged
singhsanjay12 merged 1 commit intomainfrom
ssingh1/add-social-share-buttons
Feb 19, 2026
Merged

Add social share buttons to every post#26
singhsanjay12 merged 1 commit intomainfrom
ssingh1/add-social-share-buttons

Conversation

@singhsanjay12
Copy link
Owner

Summary

  • Adds `_data/share.yml` with X, LinkedIn, Facebook, Reddit, and Hacker News platforms
  • The Chirpy theme's `post-sharing.html` include is already wired into every post layout — it just needed this data file to activate
  • Each button opens the platform's share dialog with the post title and URL pre-filled
  • The theme's built-in copy-link button is also included at no extra cost

Testing Done

  • Test added: `test_posts_have_share_buttons` asserts every built post contains `share-wrapper` div and at least one platform icon
  • Manual testing: verify share buttons appear below post content in local build

The Chirpy theme's post-sharing.html include is already wired into the
post layout but renders nothing without a data file. Adding _data/share.yml
enables X, LinkedIn, Facebook, Reddit, and Hacker News share buttons on
every post, plus the theme's built-in copy-link button.

Also adds a test asserting every built post contains the share-wrapper
div and at least one recognisable platform icon.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@singhsanjay12 singhsanjay12 force-pushed the ssingh1/add-social-share-buttons branch from 686ffe0 to 397fc99 Compare February 19, 2026 17:31
@singhsanjay12 singhsanjay12 merged commit b085464 into main Feb 19, 2026
1 check passed
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.

1 participant

Comments