Skip to content

Commit 01df8c2

Browse files
authored
Merge pull request #196 from raifdmueller/feat/remove-tag-count
fix: remove tag count display from anchor cards
2 parents fc89b64 + e467b43 commit 01df8c2

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

website/src/components/card-grid.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function renderAnchorCard(anchor, categoryColor) {
9696
const rolesCount = anchor.roles ? anchor.roles.length : 0
9797
const githubEditUrl = `https://github.com/LLM-Coding/Semantic-Anchors/edit/main/docs/anchors/${anchor.id}.adoc`
9898
const roleText = rolesCount === 1 ? i18n.t('card.roles') : i18n.t('card.rolesPlural')
99-
const tagsText = i18n.t('card.tags')
99+
100100
const editTitle = i18n.t('card.edit')
101101
const copyLinkTitle = i18n.t('card.copyLink')
102102
const safeId = escapeHtml(anchor.id)
@@ -162,18 +162,7 @@ function renderAnchorCard(anchor, categoryColor) {
162162
: ''
163163
}
164164
165-
${
166-
anchor.tags && anchor.tags.length > 0
167-
? `
168-
<span class="meta-badge">
169-
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
170-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"></path>
171-
</svg>
172-
<span data-i18n="card.tags">${anchor.tags.length} ${tagsText}</span>
173-
</span>
174-
`
175-
: ''
176-
}
165+
${''}
177166
178167
${
179168
isUmbrella

0 commit comments

Comments
 (0)