Skip to content

Commit

Permalink
wrap sidebar in code tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Feb 3, 2024
1 parent 4f3ce84 commit 7ecfb6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/sidebar/SidebarNav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ url = url.replace(/\.html$/, '');
]}
href={child.slug}
>
{child.title}
<Fragment inner:html={child.title} />
</a>
</li>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tools/docs/[version]/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function getStaticPaths() {
.filter((child) => child.id.split('/')[2] === entry && child.id.split('/')[3])
.map((tool_entry) => {
return {
title: tool_entry.id.split('/')[3].replace(/\.md$/, ''),
title: <code>tool_entry.id.split('/')[3].replace(/\.md$/, '')</code>,
slug: '/tools/' + tool_entry.id.replace(/\.md$/, ''),
};
}),
Expand Down

0 comments on commit 7ecfb6b

Please sign in to comment.