Skip to content

Commit fc102fc

Browse files
committed
omg i hate mdsvex
1 parent ca089b9 commit fc102fc

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/MDLayout.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"https://github.com/Datapack-Hub",
3636
"https://x.com/DatapackHub",
3737
"https://instagram.com/datapackhub",
38-
"https://bsky.app/profile/datapackhub.bsky.social",
3938
]} />
4039

4140
<main class="md px-4 md:px-8 lg:px-16 prose-headings:text-stone-200">

src/routes/+error.svx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { page } from "$app/stores";
2+
import { page } from "$app/state";
33
import {Version, Discord} from '$lib/reusables';
44

55
let messages = new Map([
@@ -8,6 +8,6 @@
88
]);
99
</script>
1010

11-
# Error {$page.status}: {$page.error?.message}
11+
# Error {page.status}: {page.error?.message}
1212
{messages.get($page.status)}
1313
<Discord />

svelte.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const config = {
6060
extensions: [".svx"],
6161
remarkPlugins: [[remarkAdmonitions, admonitionsOptions], [remarkCodeTitles]],
6262
rehypePlugins: [[rehypeSlug], [rehypeAutolinkHeadings, autoLinkOptions]],
63-
layout: "src/lib/MDLayout.svelte",
63+
layout: import.meta.dirname + "/src/lib/MDLayout.svelte",
6464
highlight: {
6565
highlighter: (code, lang) => {
6666
const generated = escapeSvelte(highlighter.codeToHtml(code, { lang, theme }));

0 commit comments

Comments
 (0)