Skip to content

Commit

Permalink
Fix: title is typoed with %s (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangkianh authored Nov 26, 2024
1 parent 060b05a commit 4d027c2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
import HeadComponent from "@components/head";

const config: DocsThemeConfig = {
Expand All @@ -12,12 +12,15 @@ const config: DocsThemeConfig = {
},
docsRepositoryBase: "https://github.com/lfglabs-dev/docs.starknet.id",
footer: { component: null },
head: (
<>
<HeadComponent />
<title>%s</title>
</>
),
head: () => {
const { title } = useConfig()
return (
<>
<HeadComponent />
<title>{title ?? "Starknet ID Docs"}</title>
</>
)
},
};

export default config;

0 comments on commit 4d027c2

Please sign in to comment.