diff --git a/scripts/index.js b/scripts/index.js index 38bac6b..aaf9ab0 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -42,6 +42,8 @@ function renderRepoDescription(repoLink) { let repoName = repoLink.textContent; if (repoName.toLowerCase().endsWith('.git')) { repoName = repoName.slice(0, -4); + } else { + return; } postsContainer.innerHTML = "";