Skip to content

Enhance webmentions: add links/posts counts, show replies inline via CSS :target - #24

Draft
stevenjmesser with Copilot wants to merge 3 commits into
mainfrom
copilot/enhance-webmention-summary-counts
Draft

Enhance webmentions: add links/posts counts, show replies inline via CSS :target#24
stevenjmesser with Copilot wants to merge 3 commits into
mainfrom
copilot/enhance-webmention-summary-counts

Conversation

Copilot AI commented Feb 24, 2026

Copy link
Copy Markdown

Webmention counts only showed replies, reposts, and likes; links and posts were missing. Individual webmention details were also not viewable at all.

Changes

_layouts/post.html

  • Adds links and posts to the summary count line
  • Makes the replies count a clickable anchor link; reposts/likes/links/posts remain plain text counts
  • Adds a hidden replies detail section ({% webmention_replies %}) revealed via :target, with a no-JS "Close" link that deactivates it
<p id="webmention-count">
  <a href="#webmentions-replies" aria-label="Show replies">3 replies</a>,
  1 reposts, 12 likes, 2 links, 0 posts
</p>

<div id="webmentions-replies" class="webmentions-detail">
  <a href="#webmention-count" class="webmentions-detail__close" aria-label="Close replies">Close</a>
  {% webmention_replies page.url %}
</div>

_sass/_main.scss

  • Hides .webmentions-detail by default; shows on :target — no JavaScript required
  • Styles the close link as a block element

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

…tions

Co-authored-by: stevenjmesser <23193154+stevenjmesser@users.noreply.github.com>
Copilot AI changed the title [WIP] Add links and posts to webmention summary counts Enhance webmentions: add links/posts counts and CSS-toggle detail sections Feb 24, 2026
Copilot AI requested a review from stevenjmesser February 24, 2026 10:31
Co-authored-by: stevenjmesser <23193154+stevenjmesser@users.noreply.github.com>
Copilot AI changed the title Enhance webmentions: add links/posts counts and CSS-toggle detail sections Enhance webmentions: add links/posts counts, show replies inline via CSS :target Feb 24, 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.

2 participants