Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

Enables blog list to display links to articles published on external platforms (Zenn, Qiita, etc).

Changes

  • Schema: Added optional externalUrl field to blog collection
  • BlogCard component:
    • Routes to external URL when externalUrl is present
    • Renders external link icon and "外部記事" badge for visual distinction
    • Opens external links in new tab with rel="noopener noreferrer"

Usage

Add externalUrl to blog post frontmatter:

---
title: My Article on Zenn
pubDate: '2024-12-01'
author: Naoki
tags: [Tech]
externalUrl: https://zenn.dev/username/articles/my-article
---

Screenshot

External article with icon and badge

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/web/web/node_modules/.bin/../astro/astro.js build (dns block)
  • telemetry.astro.build
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/web/web/node_modules/.bin/../astro/astro.js build (dns block)
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/web/web/node_modules/.bin/../astro/astro.js dev (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>ブログ一覧に外部記事へのリンクを設置可能にする</issue_title>
<issue_description>ブログ一覧に、外部サイトで執筆した記事へのリンクを設定して表示できるようにする。</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 8, 2025 15:19
- Add optional externalUrl field to blog schema
- Update BlogCard to handle external URLs with icon and badge
- Add sample external blog entry for demonstration
- External links open in new tab with proper security attributes

Co-authored-by: naoki-00-ito <[email protected]>
Use a complete article path instead of root URL

Co-authored-by: naoki-00-ito <[email protected]>
Copilot AI changed the title [WIP] Add external article links to blog list Add external article link support to blog list Dec 8, 2025
Copilot AI requested a review from naoki-00-ito December 8, 2025 15:24
@naoki-00-ito naoki-00-ito marked this pull request as ready for review December 8, 2025 16:44
@naoki-00-ito naoki-00-ito merged commit acadb80 into develop Dec 8, 2025
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.

ブログ一覧に外部記事へのリンクを設置可能にする

2 participants