Skip to content

feat(blog): Add DigestEntry component and migrate digest series to MDX#89

Merged
planeyang merged 1 commit intomasterfrom
planeyang/reading-digest-series
Jan 6, 2026
Merged

feat(blog): Add DigestEntry component and migrate digest series to MDX#89
planeyang merged 1 commit intomasterfrom
planeyang/reading-digest-series

Conversation

@planeyang
Copy link
Copy Markdown
Collaborator

Summary

  • Create DigestEntry component for structured article entries with title, href, category, and MDX content support
  • Migrate all 22 digest files (001-022) from Hugo shortcode format to DigestEntry component format
  • Add Image component alias to MDXComponents for markdown image support
  • Create reading-digest-zh.mdx series page
  • Extract source URLs and categories from original Hugo files

Changes

New Component: DigestEntry

A card-style component for curated article entries with:

  • Title as a clickable link (with external link indicator for external URLs)
  • Category badge
  • MDX content support for detailed commentary

Digest File Migration

All 22 digest files converted from:

{{< digest-item "source"="URL" "description"="CATEGORY" >}}
### Article Title
{{< /digest-item >}}
Content here...

To:

<DigestEntry title="Article Title" href="URL" category="CATEGORY">

Content here...

</DigestEntry>

MDX Components

Added Image component alias that wraps Figure/FigureImage for compatibility with common MDX image patterns.

Test plan

  • Verify digest pages render correctly at /periodics/digest-XXX
  • Check DigestEntry component displays title, category, and content
  • Verify external links open in new tab with indicator
  • Confirm images render properly (e.g., digest-014 has an image)

🤖 Generated with Claude Code

- Create DigestEntry component for structured article entries with
  title, href, category, and MDX content support
- Migrate all 22 digest files (001-022) from Hugo shortcode format to
  DigestEntry component format
- Add Image component alias to MDXComponents for markdown image support
- Create reading-digest-zh.mdx series page
- Extract source URLs and categories from original Hugo files

The DigestEntry component provides a card-style layout for curated
article entries with external link indicators and category badges.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@planeyang planeyang merged commit ed4cf52 into master Jan 6, 2026
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.

1 participant