Skip to content

Add Mastodon and Bluesky to author social links - #3919

Open
kingthorin with Copilot wants to merge 13 commits into
mainfrom
copilot/add-mastodon-author-social-link
Open

Add Mastodon and Bluesky to author social links#3919
kingthorin with Copilot wants to merge 13 commits into
mainfrom
copilot/add-mastodon-author-social-link

Conversation

Copilot AI commented Jul 23, 2026

Copy link
Copy Markdown

Adds support for displaying Mastodon and Bluesky social media links alongside existing Twitter links in author profiles, following the established pattern for social link integration.

Changes

Data

  • Added mastodon and bluesky fields to 6 authors in site/data/authors.yml with full profile URLs

Templates

  • Created site/layouts/partials/author-social-links.html - a reusable partial that extracts and displays usernames from social media URLs:
    • Twitter: displays handle directly
    • Mastodon: extracts username from any Mastodon instance using regex https://[^/]+/@([^/]+)
    • Bluesky: extracts handle from Bluesky URLs using regex https://bsky\.app/profile/([^/?]+)
    • Gracefully falls back to full URL if extraction doesn't match pattern
  • Updated site/layouts/post/single.html and site/layouts/history/single.html to use the partial, eliminating previous code duplication

Documentation

  • Updated README.md with correct author data format examples and simplified template examples showing partial usage

Example

Before, social links required inline template code in each layout. Now:

{{ partial "author-social-links" $author }}

This renders:

<a class="author-twitter" href="https://twitter.com/psiinon">@psiinon</a>
<br />
<a class="author-mastodon" rel="me" href="https://infosec.exchange/@psiinon">@psiinon</a>
<br />
<a class="author-bluesky" href="https://bsky.app/profile/psiinon.bsky.social">@psiinon.bsky.social</a>

The regex patterns extract just the username portion for clean display while preserving full URLs for navigation.

Copilot AI linked an issue Jul 23, 2026 that may be closed by this pull request
@psiinon

psiinon commented Jul 23, 2026

Copy link
Copy Markdown
Member

Logo
Checkmarx One – Scan Summary & Detailsa935507d-b048-41dd-ab00-8bfa7bd8a4fb


New Issues (3) Checkmarx found the following issues in this Pull Request
# Severity Issue Source File / Package Checkmarx Insight
1 LOW CVE-2026-9358 Npm-postcss-selector-parser-7.1.1
detailsRecommended version: 7.1.3
Description: A vulnerability was determined in postcss-selector-parser up to 6.1.2/7.1.2. Affected is the function toString of the file src/selectors/container....
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
2 LOW CVE-2026-9358 Npm-postcss-selector-parser-6.1.2
detailsRecommended version: 6.1.3
Description: A vulnerability was determined in postcss-selector-parser up to 6.1.2/7.1.2. Affected is the function toString of the file src/selectors/container....
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
3 LOW CVE-2026-9358 Npm-postcss-selector-parser-7.1.0
detailsRecommended version: 7.1.3
Description: A vulnerability was determined in postcss-selector-parser up to 6.1.2/7.1.2. Affected is the function toString of the file src/selectors/container....
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package

Policy Management Violations (1)
Policy Name: Commercial packages The following violations of your team's AppSec policy rules were identified in this project. Since 'Break Build' is enabled for these rules, you must resolve these issues before the Pull Request can be merged. This is the default policy that applies to all projects in your account.
  • Rule Name: Rule validation failed due to a partial or failed scan
    Scanner: SAST, SCA, IaC-Security, Containers
    Entity: Vulnerability

Use @Checkmarx to interact with Checkmarx PR Assistant.
Examples:
@Checkmarx how are you able to help me?
@Checkmarx rescan this PR

@kingthorin
kingthorin marked this pull request as ready for review July 23, 2026 11:52
Copilot AI changed the title [WIP] Add Mastodon to author social links Add Mastodon and Bluesky to author social links Jul 23, 2026
Copilot AI requested a review from kingthorin July 23, 2026 12:09
Comment thread site/data/authors.yml
njmulsqb:
name: Najam Ul Saqib
picture: /img/authors/njmulsqb_400x400.jpg
mastodon: https://infosec.exchange/@cybersoldier

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified on public website.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add Mastodon to author social links

3 participants