Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

Implements filtering capability for blog posts by author and tag. Users can now click tags or author names to view filtered post lists.

Changes

  • Dynamic filter pages: Created /author/[name] and /tag/[tag] routes using Astro's static path generation

    • Author pages: Naoki, RiiiM, Millin, TANIZAKI
    • Tag pages: Tech, Poem, Event, Security, Review, C#, Node.js, proxy, Document, mitmproxy, Info
  • Interactive BlogCard: Converted static tags and author text to clickable links with hover states

  • Helper utility: Added getTags() to extract unique tags from content collection

Implementation

// BlogCard now wraps tags and authors in links
<a href={`/tag/${tag}`}>
  <Badge variant="outline" className="transition hover:bg-gray-100">
    #{tag}
  </Badge>
</a>

<a href={`/author/${author.name}`} className="hover:underline">
  {author.name}
</a>

Each filter page maintains consistent styling with breadcrumb navigation back to main blog listing.

Screenshot

Blog page with clickable tag and author filters

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: /home/REDACTED/.nvm/versions/node/v22.14.0/bin/node node /home/REDACTED/work/web/web/node_modules/.bin/../astro/astro.js build conntrack --ctstate INVALID,NEW -j DROP (dns block)
  • iojs.org
    • Triggering command: /usr/bin/curl curl -q --fail --compressed -L -s REDACTED -o - (dns block)
  • telemetry.astro.build
    • Triggering command: /home/REDACTED/.nvm/versions/node/v22.14.0/bin/node node /home/REDACTED/work/web/web/node_modules/.bin/../astro/astro.js build conntrack --ctstate INVALID,NEW -j DROP (dns block)
    • Triggering command: /home/REDACTED/.nvm/versions/node/v22.14.0/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)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Implement filtering by author and tags on blog page Add author and tag filtering to blog pages Dec 8, 2025
Copilot AI requested a review from naoki-00-ito December 8, 2025 15:19
@naoki-00-ito naoki-00-ito marked this pull request as ready for review December 8, 2025 15:56
@naoki-00-ito naoki-00-ito merged commit e87a0c5 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