more post support
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
import adapter from "@sveltejs/adapter-static";
|
||||
import { mdsvex } from "mdsvex";
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
extensions: [".svelte", ".md"],
|
||||
preprocess: [
|
||||
mdsvex({
|
||||
// The default mdsvex extension is .svx; this overrides that.
|
||||
extensions: [".md"],
|
||||
|
||||
layout: {
|
||||
_: 'src/lib/Layout.svelte',
|
||||
},
|
||||
|
||||
// Adds IDs to headings, and anchor links to those IDs. Note: must stay in this order to work.
|
||||
rehypePlugins: [
|
||||
// rehypeSlug,
|
||||
// rehypeAutolinkHeadings,
|
||||
],
|
||||
}),
|
||||
],
|
||||
kit: {
|
||||
alias: {
|
||||
'src': './src/',
|
||||
},
|
||||
files: {
|
||||
assets: "./static",
|
||||
},
|
||||
adapter: adapter({
|
||||
// default options are shown. On some platforms
|
||||
// these options are set automatically — see below
|
||||
pages: 'build',
|
||||
assets: 'build',
|
||||
fallback: undefined,
|
||||
precompress: false,
|
||||
strict: true
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user