Skip to content

chore: minor styling tweaks for the urls used in blogs#391

Open
amaan-bhati wants to merge 12 commits into
mainfrom
feat/url-cmflg
Open

chore: minor styling tweaks for the urls used in blogs#391
amaan-bhati wants to merge 12 commits into
mainfrom
feat/url-cmflg

Conversation

@amaan-bhati
Copy link
Copy Markdown
Member

@amaan-bhati amaan-bhati commented Jun 5, 2026

Minor styling changes to style the interactions and ux of the urls used in blogs

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copilot AI review requested due to automatic review settings June 5, 2026 09:18
@amaan-bhati amaan-bhati changed the title feat: hide external links visually while preserving them for SEO feat: camouflage external links visually while preserving them for SEO Jun 5, 2026
Copy link
Copy Markdown
Contributor

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

Implements a two-layer strategy to reduce outbound clicks from blog posts while keeping external citations in the HTML for SEO: external links are visually de-emphasized/disabled via CSS, and a content-rewrite step adds target="_blank" (+ rel) as a fallback when CSS is stripped.

Changes:

  • Adjusts link styling rules so keploy/relative/anchor links remain visibly clickable, while external http(s) links look like plain text and ignore pointer events.
  • Adds a content-processing pass to inject target="_blank" and rel="noopener noreferrer" onto external links that don’t already specify a target.
  • Attempts to merge noopener noreferrer into existing rel attributes rather than overwriting.

Reviewed changes

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

File Description
components/post-body.tsx Adds a regex-based anchor-tag rewrite to set target="_blank"/rel for external links.
components/post-body.module.css Reworks .content a[...] selectors to visually disable external links while keeping internal links styled/clickable.

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

Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.module.css Outdated
Comment thread components/post-body.module.css Outdated
Comment thread components/post-body.module.css Outdated
Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

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

Comment thread components/post-body.tsx
Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.module.css Outdated
Comment thread components/post-body.module.css Outdated
… behaviour

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

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

Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx
Comment thread components/post-body.module.css
Comment thread components/post-body.module.css
…ailto/tel colour

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

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

Comment thread components/post-body.tsx
Comment thread components/post-body.module.css
Comment thread components/post-body.module.css
Comment thread components/post-body.tsx Outdated
… internal CSS selectors

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

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

Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.module.css
Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx Outdated
…-visible for external links

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread components/post-body.tsx Outdated
…e-tabnabbing

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

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

Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx Outdated
…ute hrefs

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

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

Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.module.css Outdated
…e checks, i flag on mailto/tel CSS selectors

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
Copy link
Copy Markdown
Contributor

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

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

Comment thread components/post-body.tsx Outdated
Comment thread components/post-body.tsx
… protocol-relative URLs only

Signed-off-by: amaan-bhati <amaanbhati49@gmail.com>
@amaan-bhati amaan-bhati changed the title feat: camouflage external links visually while preserving them for SEO chore: minor styling tweaks for the urls used in blogs Jun 5, 2026
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

.content a:hover {
/* keploy.io (absolute), relative paths, same-page anchors, mailto/tel — orange and clickable */
.content a[href*="keploy.io" i],
.content a[href^="/"]:not([href^="//"]),
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.

3 participants