replace badges in blog article list with tags

Signed-off-by: Tobias Erbshäußer <tobias@tesoft.dev>
This commit is contained in:
2026-05-24 09:22:59 +02:00
parent f09e73e194
commit 28dd7e2400
+5 -3
View File
@@ -116,9 +116,11 @@ export class TesoftBlogArticleList extends TesoftComponent {
const tags = anchor.querySelector<HTMLDivElement>(".tags")!; const tags = anchor.querySelector<HTMLDivElement>(".tags")!;
for (const tagName of article.tags) { for (const tagName of article.tags) {
const badge = document.createElement("tesoft-badge") as TesoftBadge; const tag = document.createElement("tesoft-tag") as TesoftTag;
badge.textContent = tagName; tag.textContent = tagName;
tags.appendChild(badge); tag.selected = "";
tag.disabled = "";
tags.appendChild(tag);
} }
this.listDiv.appendChild(anchor); this.listDiv.appendChild(anchor);