From a5010e2caf16f62525fd67c77c8ab793da694614 Mon Sep 17 00:00:00 2001 From: Alexander J Date: Thu, 19 May 2022 17:39:33 +0200 Subject: [PATCH] mdsvex improvements (needs external testing but works on my end) Signed-off-by: Alexander J --- mdsvex.config.js | 2 +- src/lib/content.svelte | 38 ++++++++++++++++++++++++++++++++++++++ src/routes/__layout.svelte | 22 ++++------------------ 3 files changed, 43 insertions(+), 19 deletions(-) create mode 100644 src/lib/content.svelte diff --git a/mdsvex.config.js b/mdsvex.config.js index 5cdd1d0..a2daa4a 100644 --- a/mdsvex.config.js +++ b/mdsvex.config.js @@ -2,11 +2,11 @@ import { defineMDSveXConfig as defineConfig } from "mdsvex"; const config = defineConfig({ extensions: [".svelte.md", ".md", ".svx"], + layout: "./src/lib/content.svelte", smartypants: { dashes: "oldschool", }, - remarkPlugins: [], rehypePlugins: [], }); diff --git a/src/lib/content.svelte b/src/lib/content.svelte new file mode 100644 index 0000000..6102559 --- /dev/null +++ b/src/lib/content.svelte @@ -0,0 +1,38 @@ + + + + + + {title} {separator} Project Segfault + + +
+ +
\ No newline at end of file diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index f479cff..76f5040 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -4,26 +4,12 @@ import SvelteSeo from "svelte-seo" -Project Segfault + + Project Segfault +
-
- - \ No newline at end of file + \ No newline at end of file