diff --git a/pages/guide/troubleshooting/_meta.json b/pages/guide/troubleshooting/_meta.json index 8a3fc01..d8dbf0e 100644 --- a/pages/guide/troubleshooting/_meta.json +++ b/pages/guide/troubleshooting/_meta.json @@ -1,4 +1,3 @@ { - "browser-errors": "NET::ERR_CERT Errors", - "missing-root": "System Doesn't Trust CA" + "browser-errors": "Common Browser Errors" } \ No newline at end of file diff --git a/theme.config.tsx b/theme.config.tsx index c55f4b5..49e30d7 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -1,4 +1,5 @@ import React from 'react' +import { useRouter } from 'next/router' import { DocsThemeConfig } from 'nextra-theme-docs' const config: DocsThemeConfig = { @@ -22,6 +23,17 @@ const config: DocsThemeConfig = { ) }, docsRepositoryBase: 'https://github.com/dyzulk/trustlab-docs/tree/main', + useNextSeoProps() { + const { asPath } = useRouter() + if (asPath === '/') { + return { + titleTemplate: 'TrustLab - Private Certificate Authority' + } + } + return { + titleTemplate: '%s – TrustLab Docs' + } + }, head: ( <>