Skip to content

Commit

Permalink
Update glossary.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Mar 22, 2024
1 parent 02bec71 commit eb9badc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/src/pages/glossary.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro";
const basePath = `/${Astro.url.pathname.split("/")[1]}`;
interface File {
fileBase: string;
Expand Down Expand Up @@ -32,8 +33,6 @@ const headings = Object.entries(sections).map(
text: slug,
})
);
console.log(headings);
---

<StarlightPage frontmatter={{ title: "Glossary" }} headings={headings}>
Expand All @@ -44,9 +43,7 @@ console.log(headings);
<ul>
{files.map(({ fileBase, title }: File) => (
<li>
<a href={`/qbittorrent-nox-static/glossary/${fileBase}`}>
{title}
</a>
<a href={`${basePath}/${fileBase}`}>{title}</a>
</li>
))}
</ul>
Expand Down

0 comments on commit eb9badc

Please sign in to comment.