Skip to content

Commit

Permalink
chore: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragxxd committed Oct 20, 2024
1 parent 7ee2545 commit c744689
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/documentation/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useRouter } from 'next/router'
import { DocsThemeConfig } from 'nextra-theme-docs';
import Image from 'next/image';
import { RiSlackFill, RiGithubFill } from '@remixicon/react';
Expand Down Expand Up @@ -26,8 +27,10 @@ const config: DocsThemeConfig = {
},
gitTimestamp: false,
useNextSeoProps() {
const { asPath } = useRouter()

return {
titleTemplate: '%s – Elixir Cloud Components',
titleTemplate: `${asPath === '/' ? '' : `%s – `}Elixir Cloud Components`,
};
},
};
Expand Down

0 comments on commit c744689

Please sign in to comment.