Skip to content

Commit

Permalink
Add a title to the default cat pages (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreds authored Feb 9, 2024
1 parent e9f3b26 commit ad08efe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions astro/src/pages/docs/[...overview].astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ const entries = currentCat.entries || [];
const subCategories = currentCat.subcategories;
---

<Layout {frontmatter} {navContext} disableTOC={true} excludeFromSearchIndex={true}>
{entries.length > 0 && <h1 class="capitalize">{ specialCaps(currentCat.name) } Pages </h1>}
<Layout title={currentCat.name.charAt(0).toUpperCase() + currentCat.name.slice(1) + " documentation" } {frontmatter} {navContext} disableTOC={true} excludeFromSearchIndex={true}>
<div class="gap-6 grid grid-cols-1 not-prose lg:grid-cols-2" xmlns="http://www.w3.org/1999/xhtml">
{entries.map(entry =>
<ClickableCard href={entry.href} title={entry.title} description={entry.description}/>
Expand Down

0 comments on commit ad08efe

Please sign in to comment.