Repository navigation
Add social share buttons to blog posts - #1258
dongjiang1989 wants to merge 2 commits into
Conversation
1c6c9e7 to
6dca1fe
Compare
a29f1e5 to
70530d5
Compare
kristin-kronstain-brown
left a comment
There was a problem hiding this comment.
Thanks for adding these! I don't mind the buttons at the bottom of the page, but should we consider putting them at the top? Whether in the banner or in the body of the blog itself, I don't know which would look better. Not required to get this PR merged, just something to consider.
|
@kristin-kronstain-brown Thank you for the feedback! I'd like to keep the share buttons at the bottom for a few reasons:
That said, I'm open to reconsidering if the team prefers a different placement. The current implementation is flexible and can be easily moved to the banner or top of the body if needed. Let me know if you'd like any adjustments! |
f43e87a to
0fd2fa9
Compare
- Add share section with Twitter, LinkedIn, Facebook, WhatsApp, Email icons - Create reusable partial template layouts/partials/blog-share.html - Integrate share component into blog single post template - Center aligned with flexbox layout - Unified icon size (w-6 h-6) for consistent appearance - Consistent gap between icons (gap-4) - Responsive design for web and mobile - Dark mode support with dark:text-gray-* classes - Smooth hover transition effects - Include proper accessibility attributes (title) Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
1. Accessibility: Add aria-label to all links, hide SVGs from screen readers 2. Email encoding: Replace + with %20 in mailto links, handle empty description 3. Update Twitter to X platform (https://x.com/intent/post) 4. Refactor: Use range over platforms slice, support share: false front matter 5. Alignment: Use justify-start to match article left alignment Addresses all review comments from @kristin-kronstain-brown Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
0fd2fa9 to
7415823
Compare

Summary
Add social sharing section to blog post pages with Twitter, LinkedIn, Facebook, WhatsApp, and Email share buttons.
Changes
layouts/partials/blog-share.html- Reusable share componentlayouts/blog/single.html- Integrated share componentFeatures
Closes #1257