- {page.data.title} + {title}
- - {page.data.description} - + {showDescriptions && ( + + {page.data.description} + + )} ); })} diff --git a/src/components/TroubleshootingList.astro b/src/components/TroubleshootingList.astro deleted file mode 100644 index dd795155af59a9..00000000000000 --- a/src/components/TroubleshootingList.astro +++ /dev/null @@ -1,76 +0,0 @@ ---- -import { getEntry } from "astro:content"; -import { getCollection } from "astro:content"; - -const currentSection = Astro.params.slug?.split("/")[0]; -const troubleshootingTypes = ["troubleshooting", "faq"]; - -const resources = await getCollection("docs", (entry) => { - return ( - entry.data.pcx_content_type && - troubleshootingTypes.includes(entry.data.pcx_content_type) && - entry.id.startsWith(`${currentSection}/`) - ); -}); ---- - -Resource | -Location | -Type | -
- {title} - | -{location.join(" > ")} | -- {resource.data.pcx_content_type === "troubleshooting" - ? "Troubleshooting" - : "FAQ"} - | -
{description}
-