feat: added Layout for Blog posts together with custom components for images

This commit is contained in:
2025-09-15 13:29:26 +02:00
parent ba0a096fb8
commit dc94d1bab7
2 changed files with 62 additions and 7 deletions

View File

@@ -10,13 +10,21 @@ const __dirname = dirname(__filename);
const path_to_layout = join(__dirname, './src/routes/blogs/blog.svelte');
import { join, dirname } from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const path_to_layout = join(__dirname, './src/routes/blogs/blog.svelte');
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs/kit/integrations
// for more information about preprocessors
preprocess: [vitePreprocess(), mdsvex({
layout: {
blog: path_to_layout
_: path_to_layout
}
})],
kit: {