Skip to content

Conversation

@kyu08
Copy link
Owner

@kyu08 kyu08 commented Nov 8, 2025

Implemented a blog card shortcode that displays rich link previews with:

  • Automatic OGP metadata fetching (title, description, image)
  • Manual parameter specification support
  • Responsive design with dark theme styling
  • Hover animations and effects
  • CORS-friendly fetching via proxy service

Usage: {{< blogcard url="https://example.com" >}} or just put URL in one line.

Mobile CleanShot 2025-11-09 at 13 14 43@2x
PC CleanShot 2025-11-09 at 02 25 26@2x
PC(Hover) CleanShot 2025-11-09 at 02 25 38@2x

Implemented a blog card shortcode that displays rich link previews with:
- Automatic OGP metadata fetching (title, description, image)
- Manual parameter specification support
- Responsive design with dark theme styling
- Hover animations and effects
- CORS-friendly fetching via proxy service

Usage: {{< blogcard url="https://example.com" >}}
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

プレビュー環境

プレビュー環境が更新されました。

URL: https://blog.kyu08.com/pr-246/

Commit: 5e73af7a833f63121aff4b6d6ca7ee13eec9951d

※ デプロイ完了まで数分かかる場合があります。

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

OGP画像に差分はありません

OGP画像は最新の状態です。

claude and others added 6 commits November 8, 2025 17:09
Changes:
- Remove border from blogcard for cleaner look
- Add debug logging to blogcard.js for troubleshooting
- Update documentation to recommend manual parameter specification
- Add working examples for immediate testing
- Improve error handling in OGP fetch logic

The manual specification method is now recommended as the most reliable approach, with auto-fetch as a bonus feature.
Performance improvements:
- Add multiple proxy fallback (corsproxy.io as primary, allOrigins as backup)
- Implement 5-second timeout per proxy (max 10 seconds total)
- Add loading animation while fetching OGP data
- Log elapsed time for debugging

This should significantly reduce the wait time from 10+ seconds to under 5 seconds in most cases.
This reverts commit b79a35f.
@kyu08 kyu08 requested a review from Copilot November 8, 2025 17:29
Copy link
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

このPRは、ブログカード機能を追加し、外部URLからOGP (Open Graph Protocol) 情報を自動取得して表示する機能を実装します。

主な変更点:

  • OGP情報の自動取得とブログカードの動的更新機能
  • レスポンシブ対応のブログカードスタイル
  • Hugo shortcodeによるブログカード生成

Reviewed Changes

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

File Description
static/style.css ブログカードのスタイル定義、レスポンシブ対応、ローディングアニメーション
static/blogcard.js OGP情報取得ロジック、プロキシサービス経由のフェッチ、DOM更新処理
layouts/shortcodes/blogcard.html Hugoショートコードテンプレート、パラメータ処理とHTML生成
layouts/partials/extended_footer.html blogcard.jsのスクリプト読み込み

Copy link
Contributor

Copilot AI commented Nov 8, 2025

@kyu08 I've opened a new pull request, #247, to work on those changes. Once the pull request is ready, I'll request review from you.

kyu08 and others added 3 commits November 9, 2025 02:34
* Initial plan

* Fix async forEach issue - use Promise.all with map pattern

Co-authored-by: kyu08 <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: kyu08 <[email protected]>
@kyu08 kyu08 merged commit 123f367 into main Nov 9, 2025
4 checks passed
@kyu08 kyu08 deleted the claude/implement-blog-card-011CUvm6CxVowkigoux8VGUV branch November 9, 2025 04:15
github-actions bot added a commit that referenced this pull request Nov 9, 2025
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