Skip to content

feat(blog): add support for LinkedIn profile links for post authors#2254

Open
vivekyadav-3 wants to merge 4 commits intojson-schema-org:mainfrom
vivekyadav-3:feature/author-linkedin-links
Open

feat(blog): add support for LinkedIn profile links for post authors#2254
vivekyadav-3 wants to merge 4 commits intojson-schema-org:mainfrom
vivekyadav-3:feature/author-linkedin-links

Conversation

@vivekyadav-3
Copy link

@vivekyadav-3 vivekyadav-3 commented Feb 20, 2026

What kind of change does this PR introduce?

  • Feature
  • Bug fix
  • Refactoring
  • Documentation update
  • Other

Issue Number:
Closes #1398

Description:
This PR adds support for displaying LinkedIn profile links for blog post authors, similar to the existing Twitter link functionality.

Changes:

  • Updated pages/blog/posts/[slug].page.tsx to check for a linkedin field in the author's frontmatter.
  • If present, a "LinkedIn" link is rendered alongside the Twitter link in the author metadata section.
  • Ensures design consistency with existing author links.

Screenshots/videos:
Tested locally by adding a linkedin field to a sample post in frontmatter; link renders correctly in author bio.
If relevant, did you update the documentation?

  • Yes
  • No

Copilot AI review requested due to automatic review settings February 20, 2026 04:48
@vivekyadav-3 vivekyadav-3 requested a review from a team as a code owner February 20, 2026 04:48
@github-project-automation github-project-automation bot moved this to Ready to review in PR - Triage Group Feb 20, 2026
@github-actions
Copy link

Hi @vivekyadav-3! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: kind of change description

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request aims to add LinkedIn profile link support for blog post authors in response to issue #1398. The implementation adds a "LinkedIn" link alongside existing Twitter links in the author bio section of blog posts. Additionally, the PR includes unrelated changes to migrate from img to Next.js Image component in the pro-help page.

Changes:

  • Added LinkedIn link support in blog post author bio sections with conditional rendering
  • Restructured author bio layout to accommodate multiple social links (Twitter and LinkedIn)
  • Migrated img elements to Next.js Image component in the pro-help page (unrelated to LinkedIn feature)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
pages/blog/posts/[slug].page.tsx Adds LinkedIn link rendering for blog post authors with layout restructuring to display Twitter and LinkedIn links side-by-side
pages/overview/pro-help/index.page.tsx Migrates from HTML img to Next.js Image component for contractor avatars (unrelated to LinkedIn feature)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +100 to +107
{author.linkedin && (
<a
className='text-blue-700 hover:underline'
href={author.linkedin}
target="_blank"
rel="noopener noreferrer"
>
LinkedIn
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation introduces a new linkedin field for authors, but the codebase already has a generic link field in the Author type (see pages/blog/index.page.tsx lines 16-21) that's used in blog posts like gsoc25-wrapup.md. This creates redundancy and inconsistency. Consider using the existing link field instead of adding a new linkedin-specific field. The link field is more flexible and can point to any professional profile (LinkedIn, personal website, etc.).

Suggested change
{author.linkedin && (
<a
className='text-blue-700 hover:underline'
href={author.linkedin}
target="_blank"
rel="noopener noreferrer"
>
LinkedIn
{author.link && (
<a
className='text-blue-700 hover:underline'
href={author.link}
target="_blank"
rel="noopener noreferrer"
>
Profile

Copilot uses AI. Check for mistakes.
Comment on lines 109 to 226
@@ -214,8 +217,10 @@ export default function ProHelp({ contractorData }: ProHelpPageProps) {
{/* Image and Name */}
<div className='flex items-center space-x-8 pr-8'>
<div className='relative group'>
<img
<Image
src={`https://github.com/${contractor.github}.png`}
width={128}
height={128}
className='w-32 h-32 rounded-md border-4 border-blue-100 shadow-lg hover:border-blue-300 transition-all duration-300 dark:border-gray-600'
alt={`${contractor.name}'s avatar`}
/>
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to migrate from img to Image component in this file are unrelated to the LinkedIn profile feature described in the PR title and description. These changes should be in a separate PR focused on Next.js Image component migration. Including unrelated changes makes the PR harder to review and understand.

Copilot uses AI. Check for mistakes.
Comment on lines +86 to +109
<div className='text-sm font-semibold'>
{author.name}
</div>
<div className='flex gap-2 text-xs'>
{author.twitter && (
<a
className='text-blue-500 hover:underline'
href={`https://x.com/${author.twitter}`}
target="_blank"
rel="noopener noreferrer"
>
Twitter
</a>
)}
{author.linkedin && (
<a
className='text-blue-700 hover:underline'
href={author.linkedin}
target="_blank"
rel="noopener noreferrer"
>
LinkedIn
</a>
)}
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation differs from what was requested in issue #1398. The issue asks for "Clicking on an author's name in a blog post should redirect users to their LinkedIn profile," but this implementation adds a separate "LinkedIn" link instead of making the author's name clickable. While the current approach may be more flexible (supporting both Twitter and LinkedIn), the discrepancy should be clarified.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

Hi @vivekyadav-3! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: kind of change description

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

@github-actions
Copy link

github-actions bot commented Feb 20, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview 6903c8e

@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (974ad0e) to head (6903c8e).
⚠️ Report is 40 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2254   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines          640       663   +23     
  Branches       198       205    +7     
=========================================
+ Hits           640       663   +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jagpreetrahi
Copy link
Collaborator

@vivekyadav-3 , some checks are failed , please fix them

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

Labels

None yet

Projects

Status: Ready to review

Development

Successfully merging this pull request may close these issues.

✨ Enhancement: Linking LinkedIn Profile of Author in Blogs

4 participants