* style: Improved font size of the answers in the FAQ section of the landing page * working on the classroomio blog * there is a bit of a git issue * changed the footer route * Merge branch 'main' into issue-139 * Added syntax higlighting,blockquotes styling and image stylings * restyle and add first blog * make tagline match home page * add docs route --------- Co-authored-by: Rotimi Best <best@classroomio.com>
16 lines
333 B
TypeScript
16 lines
333 B
TypeScript
import { error } from '@sveltejs/kit';
|
|
|
|
export async function load({ params }) {
|
|
try {
|
|
const blog = await import(`../../../blog/${params.slug}.md`);
|
|
|
|
return {
|
|
content: blog.default,
|
|
meta: blog.metadata,
|
|
slug: params.slug
|
|
};
|
|
} catch (e) {
|
|
throw error(404, `Could not find ${params.slug}`);
|
|
}
|
|
}
|