Skip to content

Commit ed094bf

Browse files
HeyItsGilbertclaude
andcommitted
style(cards): plainify and truncate summaries for consistent card sizing
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>
1 parent c1eb617 commit ed094bf

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

themes/powershell-community/layouts/_default/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h2 class="text-xl font-bold text-gray-900 mb-3">
6060
{{ .Title }}
6161
</a>
6262
</h2>
63-
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary }}</p>
63+
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary | plainify | truncate 300 }}</p>
6464
<div class="flex items-center space-x-4">
6565
<a href="{{ .RelPermalink }}"
6666
class="inline-flex items-center bg-purple-600 text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-purple-700 transition-colors duration-200">
@@ -103,7 +103,7 @@ <h2 class="text-xl font-bold text-gray-900 mb-3">
103103
</a>
104104
</h2>
105105

106-
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary }}</p>
106+
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary | plainify | truncate 300 }}</p>
107107

108108
<div class="flex items-center justify-between">
109109
<a href="{{ .RelPermalink }}"

themes/powershell-community/layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-3 line-clamp-2">
167167
{{ .Title }}
168168
</a>
169169
</h3>
170-
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary }}</p>
170+
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary | plainify | truncate 300 }}</p>
171171
<a href="{{ .RelPermalink }}"
172172
class="inline-flex items-center text-blue-600 font-medium hover:text-blue-700">
173173
Listen Now <i class="fas fa-play ml-2"></i>
@@ -211,7 +211,7 @@ <h3 class="text-lg font-semibold text-gray-900 mb-3 line-clamp-2">
211211
{{ .Title }}
212212
</a>
213213
</h3>
214-
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary }}</p>
214+
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary | plainify | truncate 300 }}</p>
215215
{{ with .Params.author }}
216216
<div class="flex items-center text-sm text-gray-500">
217217
<i class="fas fa-user-circle mr-2"></i>

themes/powershell-community/layouts/podcast/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h2 class="text-xl lg:text-2xl font-bold text-gray-900 mb-3">
6262
{{ .Title }}
6363
</a>
6464
</h2>
65-
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary }}</p>
65+
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary | plainify | truncate 300 }}</p>
6666
<div class="flex flex-wrap items-center gap-4">
6767
<a href="{{ .RelPermalink }}"
6868
class="inline-flex items-center bg-purple-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-purple-700 transition-colors duration-200">

themes/powershell-community/layouts/taxonomy/author.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2 class="text-xl lg:text-2xl font-bold text-gray-900 mb-3">
100100
{{ .Title }}
101101
</a>
102102
</h2>
103-
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary }}</p>
103+
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary | plainify | truncate 300 }}</p>
104104
<div class="flex flex-wrap items-center gap-4">
105105
<a href="{{ .RelPermalink }}"
106106
class="inline-flex items-center bg-purple-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-purple-700 transition-colors duration-200">
@@ -133,7 +133,7 @@ <h2 class="text-xl lg:text-2xl font-bold text-gray-900 mb-3">
133133
{{ .Title }}
134134
</a>
135135
</h2>
136-
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary }}</p>
136+
<p class="text-gray-600 mb-4 line-clamp-3">{{ .Summary | plainify | truncate 300 }}</p>
137137
<div class="flex flex-wrap items-center gap-4">
138138
<a href="{{ .RelPermalink }}"
139139
class="inline-flex items-center bg-blue-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-blue-700 transition-colors duration-200">

0 commit comments

Comments
 (0)