rework layout and add table of contents
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { mdsvex } from 'mdsvex';
|
||||
import staticAdapter from '@sveltejs/adapter-static';
|
||||
import svp from 'svelte-preprocess';
|
||||
// import slug from './src/lib/slug.js';
|
||||
// import { addDropcaps } from './src/lib/dropcapify.js';
|
||||
import { localPlugins } from './src/plugins/rehype.js';
|
||||
|
||||
import { localRemark } from './src/plugins/remark.js';
|
||||
import { localRehype } from './src/plugins/rehype.js';
|
||||
|
||||
|
||||
const config = {
|
||||
@@ -11,7 +11,8 @@ const config = {
|
||||
preprocess: [
|
||||
mdsvex({
|
||||
layout: './src/lib/Post.svelte',
|
||||
rehypePlugins: [localPlugins],
|
||||
remarkPlugins: [localRemark],
|
||||
rehypePlugins: [localRehype],
|
||||
}),
|
||||
svp.scss(),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user