Skip to content

Commit

Permalink
Update +page.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato authored Dec 24, 2024
1 parent a3af428 commit 23334e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/docs/[...slug]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import type { PageLoad } from "./$types.js";
import { getDoc } from "$lib/utils.js";

export const load: PageLoad = async (event) => {
const { component, title, metadata } = await getDoc(event.params.slug);
const { section, component, title, metadata } = await getDoc(event.params.slug);
return {
section,
component,
metadata,
title,
Expand Down

0 comments on commit 23334e9

Please sign in to comment.