rework layout and add table of contents

This commit is contained in:
2023-08-21 22:16:17 -07:00
parent 33d6838dc4
commit 5817d94043
8 changed files with 174 additions and 65 deletions

View File

@@ -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(),
],