Skip to content

style(cards): plainify and truncate summaries for consistent card sizing#40

Merged
HeyItsGilbert merged 1 commit into
mainfrom
style/card-truncation
Jun 23, 2026
Merged

style(cards): plainify and truncate summaries for consistent card sizing#40
HeyItsGilbert merged 1 commit into
mainfrom
style/card-truncation

Conversation

@HeyItsGilbert

Copy link
Copy Markdown
Member

Summary

Pipe .Summary through plainify | truncate 300 on every card grid so cards render uniform-length text regardless of the source markup (some summaries carried raw HTML / WPBakery remnants).

Affected layouts:

  • Homepage podcast + blog card grids
  • Default list (/articles/, sections)
  • Podcast list
  • Author pages

plainify strips HTML; truncate 300 caps length with an ellipsis. The existing line-clamp-3 still bounds visual height — this keeps the underlying text from varying wildly.

Test plan

  • hugo builds clean (only pre-existing deprecation warnings)
  • Verified rendered cards on /, /articles/, /podcast/, and an author page show truncated, tag-free text

🤖 Generated with Claude Code

Pipe .Summary through `plainify | truncate 300` on the homepage,
default list, podcast list, and author page card grids so cards
render uniform-length text regardless of source markup.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit f85545c
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a3b095fd442ff0007febcd4
😎 Deploy Preview https://deploy-preview-40--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@HeyItsGilbert HeyItsGilbert merged commit ed094bf into main Jun 23, 2026
5 checks passed
@HeyItsGilbert HeyItsGilbert deleted the style/card-truncation branch June 23, 2026 22:39
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