replace badges in blog article list with tags
Signed-off-by: Tobias Erbshäußer <tobias@tesoft.dev>
This commit is contained in:
@@ -116,9 +116,11 @@ export class TesoftBlogArticleList extends TesoftComponent {
|
||||
|
||||
const tags = anchor.querySelector<HTMLDivElement>(".tags")!;
|
||||
for (const tagName of article.tags) {
|
||||
const badge = document.createElement("tesoft-badge") as TesoftBadge;
|
||||
badge.textContent = tagName;
|
||||
tags.appendChild(badge);
|
||||
const tag = document.createElement("tesoft-tag") as TesoftTag;
|
||||
tag.textContent = tagName;
|
||||
tag.selected = "";
|
||||
tag.disabled = "";
|
||||
tags.appendChild(tag);
|
||||
}
|
||||
|
||||
this.listDiv.appendChild(anchor);
|
||||
|
||||
Reference in New Issue
Block a user