diff --git a/src/cards/repo-card.js b/src/cards/repo-card.js index 7fcf5953..3a20a93d 100644 --- a/src/cards/repo-card.js +++ b/src/cards/repo-card.js @@ -123,14 +123,18 @@ const renderRepoCard = (repo, options = {}) => { isTemplate, starCount, forkCount, + highlight, + } = repo; + + if (!highlight) { highlight = isTemplate ? // @ts-ignore getBadgeSVG(i18n.t("repocard.template"), colors.textColor) : isArchived ? // @ts-ignore getBadgeSVG(i18n.t("repocard.archived"), colors.textColor) - : "", - } = repo; + : "" + } const lineHeight = 10; const header = show_owner ? nameWithOwner : name;