Skip to content

Commit 96e368b

Browse files
committed
feat(docs): improve SEO
1 parent 74385fa commit 96e368b

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

docs/src/components/Aside/Aside.tsx

+12-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ export const Aside = component$(() => {
1313
return (
1414
<ul key={idx} class="mb-6">
1515
<li>
16-
<a
17-
class="mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline"
18-
href={href}
19-
>
20-
{title}
21-
</a>
16+
{href ? (
17+
<a
18+
class="mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline"
19+
href={href}
20+
>
21+
{title}
22+
</a>
23+
) : (
24+
<span class="mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline">
25+
{text}
26+
</span>
27+
)}
2228
{(items || []).map(({ text, href }, idx) => (
2329
<ul key={idx}>
2430
<li class="py-1 text-black dark:text-white">

docs/src/components/RouterHead/RouterHead.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const RouterHead = component$(() => {
2828
<meta
2929
name="description"
3030
property="og:description"
31-
content={head.frontmatter.description || head.frontmatter.titlen}
31+
content={head.frontmatter.description || head.frontmatter.title}
3232
/>
3333
<meta property="og:site_name" content={head.frontmatter.title} />
3434

0 commit comments

Comments
 (0)