small tweaks

This commit is contained in:
Barrett Ruth 2025-10-08 00:22:42 -04:00
parent 81fca03582
commit d351cd2e3e
3 changed files with 7 additions and 8 deletions

View file

@ -31,14 +31,15 @@ const title = "Git Repositories";
repos.sort((a, b) => a.localeCompare(b));
for (const name of repos) {
const cls = `repo-${name}`;
const label = name.replace(/\.git$/,"");
const cls = `repo-${label}`;
const li = document.createElement("li");
li.className = `topic ${cls}`;
const a = document.createElement("a");
// a.href = `https://git.barrettruth.com/${name}`;
a.textContent = name;
a.href = `${window.location.origin}/git/${label}`;
a.textContent = label;
a.setAttribute("data-topic", name);
li.appendChild(a);