diff --git a/astro.config.mjs b/astro.config.mjs
index b732012..877ca42 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -17,6 +17,7 @@ import { AdmonitionComponent } from "./src/plugins/rehype-component-admonition.m
import { GithubCardComponent } from "./src/plugins/rehype-component-github-card.mjs"
import {parseDirectiveNode} from "./src/plugins/remark-directive-rehype.js";
import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs"
+import {remarkExcerpt} from "./src/plugins/remark-excerpt.js";
const oklchToHex = (str) => {
const DEFAULT_HUE = 250
@@ -68,7 +69,7 @@ export default defineConfig({
}),
],
markdown: {
- remarkPlugins: [remarkMath, remarkReadingTime, remarkGithubAdmonitionsToDirectives, remarkDirective, parseDirectiveNode],
+ remarkPlugins: [remarkMath, remarkReadingTime, remarkExcerpt, remarkGithubAdmonitionsToDirectives, remarkDirective, parseDirectiveNode],
rehypePlugins: [
rehypeKatex,
rehypeSlug,
diff --git a/src/components/PostCard.astro b/src/components/PostCard.astro
index 14002a7..1c7e37b 100644
--- a/src/components/PostCard.astro
+++ b/src/components/PostCard.astro
@@ -48,8 +48,8 @@ const { remarkPluginFrontmatter } = await entry.render();