Skip to content

Commit

Permalink
fix: description for slug doc
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinderoubaix committed Jan 17, 2024
1 parent 2f11913 commit 72c1754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions demo/src/routes/docs/[framework]/[...slug]/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const load = async ({params}) => {
else {
return {
source,
slug: params.slug,
};
}
};
3 changes: 2 additions & 1 deletion demo/src/routes/docs/[framework]/[...slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<script lang="ts">
import Markdown from '$lib/markdown/Markdown.svelte';
export let data;
// TODO replace the description using front-matter
</script>

<svelte:head>
<meta name="description" content="Focus track service documentation" />
<meta name="description" content={`Documentation for ${data.slug.replace('/', ' ').replace('-', ' ')}`} />
</svelte:head>

<Markdown source={data.source} />

0 comments on commit 72c1754

Please sign in to comment.