Skip to content

Commit

Permalink
docs: don't index demos; don't duplicate meta descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Nov 3, 2023
1 parent 5d95448 commit 89a3796
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/docs/public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
User-agent: *
Disallow: /demo/
Allow: /
Sitemap: https://qwik.builder.io/sitemap.xml
9 changes: 6 additions & 3 deletions packages/docs/src/components/router-head/router-head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ export const RouterHead = component$(() => {
</>
)}

{head.meta.map((m, key) => (
<meta key={key} {...m} />
))}
{head.meta
// Skip description because that was already added at the top
.filter((s) => s.name !== 'description')
.map((m, key) => (
<meta key={key} {...m} />
))}

{head.links.map((l, key) => (
<link key={key} {...l} />
Expand Down

0 comments on commit 89a3796

Please sign in to comment.