Skip to content

Commit fb79f49

Browse files
committed
chore(docs): change metadata
1 parent 67577dc commit fb79f49

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/src/components/RouterHead/RouterHead.tsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ export const RouterHead = component$(() => {
99
const loc = useLocation();
1010

1111
const imageSrc = "https://partytown.qwik.dev/partytown-media.png";
12+
const description =
13+
head.meta.find((m) => m.name === "description")?.content ||
14+
`Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker`;
1215

1316
return (
1417
<>
1518
<title>{head.title}</title>
16-
<meta name="description" content="Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker" />
17-
19+
<meta name="description" content={description} />
20+
1821
<link rel="canonical" href={loc.url.href} />
1922
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2023
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
@@ -29,7 +32,7 @@ export const RouterHead = component$(() => {
2932
<meta
3033
name="description"
3134
property="og:description"
32-
content={head.frontmatter.description || head.frontmatter.title}
35+
content={description || head.frontmatter.title}
3336
/>
3437
<meta property="og:site_name" content={head.frontmatter.title} />
3538

@@ -38,7 +41,7 @@ export const RouterHead = component$(() => {
3841
<meta name="twitter:title" content={head.frontmatter.title} />
3942
<meta
4043
name="twitter:description"
41-
content={head.frontmatter.description || head.frontmatter.title}
44+
content={description || head.frontmatter.title}
4245
/>
4346
<meta name="twitter:image" content={imageSrc} />
4447
<meta name="twitter:image:alt" content="Partytown Logo" />

0 commit comments

Comments
 (0)