diff --git a/docs/pages/get-started/step-5.mdx b/docs/pages/get-started/step-5.mdx index 933c219d2..01aa3144e 100644 --- a/docs/pages/get-started/step-5.mdx +++ b/docs/pages/get-started/step-5.mdx @@ -1,4 +1,4 @@ -# **Step 4:** All in one place +# **Step 5:** All in one place ## TLDR We have created some handy example directory for the tutorial you just went through. diff --git a/docs/theme.config.js b/docs/theme.config.js index 8534d8a82..dbc7c415f 100644 --- a/docs/theme.config.js +++ b/docs/theme.config.js @@ -1,5 +1,6 @@ import { useConfig } from "nextra-theme-docs"; import React from "react"; +import { useRouter } from "next/router"; /* eslint sort-keys: error */ /** @@ -24,6 +25,26 @@ export default { ), }, + head: () => { + const { asPath, defaultLocale, locale } = useRouter(); + const { title } = useConfig(); + const url = + "https://starship.cosmology.tech/" + + (defaultLocale === locale ? asPath : `/${locale}${asPath}`); + + const _title = asPath !== "/" ? `${title} - Cosmology` : `${title}`; + return ( + <> + + + +