Skip to content

Commit

Permalink
Remove horizontal rule in TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
mthierman committed Oct 11, 2023
1 parent ec9cd4e commit 4165cff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/toc.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ const {} = Astro.props;
a.setAttribute("href", "#" + heading.id);
a.setAttribute("class", "no-underline");

let hr = document.createElement("hr");
hr.setAttribute("class", "mt-4 mb-2");

if (heading.textContent)
li.innerText = heading.textContent.trim();

if (level === 1) {
li.setAttribute("class", "text-lg font-bold");
toc.appendChild(hr);
}

if (level === 2) {
Expand Down

0 comments on commit 4165cff

Please sign in to comment.