Skip to content

Commit

Permalink
feat(docs): improve SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed Dec 21, 2024
1 parent fee4291 commit ad79d0a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions docs/src/components/Aside/Aside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ export const Aside = component$(() => {
return (
<ul key={idx} class="mb-6">
<li>
<a
class="mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline"
href={href}
>
{title}
</a>
{href ? (
<a
class="mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline"
href={href}
>
{title}
</a>
) : (
<span class="mb-2 block rounded bg-blue-700 px-4 py-1 text-base font-bold uppercase text-white no-underline">
{text}
</span>
)}
{(items || []).map(({ text, href }, idx) => (
<ul key={idx}>
<li class="py-1 text-black dark:text-white">
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/RouterHead/RouterHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const RouterHead = component$(() => {
<meta
name="description"
property="og:description"
content={head.frontmatter.description || head.frontmatter.titlen}
content={head.frontmatter.description || head.frontmatter.title}
/>
<meta property="og:site_name" content={head.frontmatter.title} />

Expand Down

0 comments on commit ad79d0a

Please sign in to comment.