Skip to content

Commit f1770f8

Browse files
Aleksa-delclaude
andauthored
Blog: show all tags on post cards (#275)
Post cards on /blog/ showed only the first tag. Show every tag, joined with " · ", so a post tagged "Project Spotlight" and "Webinar" shows both. Cards with one tag look the same as before. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 87013d8 commit f1770f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎layouts/_default/list.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>{{ .Title }}</h1>
2424
{{ end }}
2525
{{ end }}
2626
<div class="post-card-body">
27-
<span class="post-card-tag{{ with .Params.tags }}{{ if in . "Digest" }} post-card-tag--digest{{ end }}{{ end }}">{{ with .Params.tags }}{{ index . 0 }}{{ else }}News{{ end }}</span>
27+
<span class="post-card-tag{{ with .Params.tags }}{{ if in . "Digest" }} post-card-tag--digest{{ end }}{{ end }}">{{ with .Params.tags }}{{ delimit . " · " }}{{ else }}News{{ end }}</span>
2828
<div class="post-card-title">{{ .Title }}</div>
2929
<div class="post-card-excerpt">{{ .Summary | truncate 140 }}</div>
3030
<div class="post-card-meta">

0 commit comments

Comments
 (0)