Skip to content

Commit

Permalink
docs: use title and description for metadata (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Dec 19, 2024
1 parent bba5162 commit cc911f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sites/docs/src/routes/(docs)/docs/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
let { data } = $props();
</script>

<svelte:head>
<title>{data.metadata.title}</title>
<meta name="description" content={data.metadata.description} />
</svelte:head>
<DocPage component={data.component} {...data.metadata} />
4 changes: 4 additions & 0 deletions sites/docs/src/routes/(docs)/docs/[...slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
let { data } = $props();
</script>

<svelte:head>
<title>{data.metadata.title}</title>
<meta name="description" content={data.metadata.description} />
</svelte:head>
<DocPage component={data.component} {...data.metadata} />

0 comments on commit cc911f2

Please sign in to comment.