diff --git a/src/plugins/rehype-component-github-card.mjs b/src/plugins/rehype-component-github-card.mjs index b212a3ad..3923f194 100644 --- a/src/plugins/rehype-component-github-card.mjs +++ b/src/plugins/rehype-component-github-card.mjs @@ -73,7 +73,7 @@ export function GithubCardComponent(properties, children) { if (data.license?.spdx_id) { document.getElementById('${cardUuid}-license').innerText = data.license?.spdx_id } else { - document.getElementById('${cardUuid}-license').classList.add = "no-license" + document.getElementById('${cardUuid}-license').innerText = "no-license" }; document.getElementById('${cardUuid}-card').classList.remove("fetch-waiting"); console.log("[GITHUB-CARD] Loaded card for ${repo} | ${cardUuid}.") diff --git a/src/styles/markdown-extend.styl b/src/styles/markdown-extend.styl index 9311110e..687be288 100644 --- a/src/styles/markdown-extend.styl +++ b/src/styles/markdown-extend.styl @@ -239,7 +239,7 @@ a.card-github.fetch-error 100% opacity: 0.15 -.card-github, .gc-description, .gc-titlebar, .gc-stars, .gc-forks, .gc-license, .gc-avatar, github-logo +.card-github, .gc-description, .gc-titlebar, .gc-stars, .gc-forks, .gc-license, .gc-avatar, .github-logo transition-property: all transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) transition-duration: 0.15s