Skip to content

Commit

Permalink
feat: update header string
Browse files Browse the repository at this point in the history
  • Loading branch information
ink-victor committed Dec 18, 2024
1 parent edcc1ca commit 4670fa2
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ const config: DocsThemeConfig = {
head: Head,
components: {
a(props: { href?: string }) {
const isExternal = props.href?.startsWith('http');
const isExternal = props.href?.startsWith("http");
return (
<a
{...props}
{...(isExternal ? { target: '_blank', rel: 'noopener noreferrer' } : {})}
{...(isExternal
? { target: "_blank", rel: "noopener noreferrer" }
: {})}
className="text-magic-purple underline decoration-1 transition-all hover:text-magic-purple/80 dark:text-magic-soft-pink dark:hover:text-magic-soft-pink/80"
/>
);
Expand Down Expand Up @@ -68,15 +70,18 @@ const config: DocsThemeConfig = {
rel="noopener noreferrer"
aria-label="Documentation Status"
>
🏗️ Documentation is under active development. Testnet is live!
🎉 Mainnet is LIVE! 🎉
</a>
),
},
useNextSeoProps() {
const { asPath } = useRouter()
const { asPath } = useRouter();
return {
titleTemplate: asPath === '/' ? "Ink Docs - The Official Developer Guide for Ink" : '%s | Ink Docs'
}
titleTemplate:
asPath === "/"
? "Ink Docs - The Official Developer Guide for Ink"
: "%s | Ink Docs",
};
},
};

Expand Down

0 comments on commit 4670fa2

Please sign in to comment.