feat: added Layout for Blog posts together with custom components for images
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user