feat: add remark reading time

This commit is contained in:
Alexander Daichendt 2024-12-11 22:25:46 +01:00
parent a4f12f33a3
commit 6c7c305fe1
7 changed files with 38 additions and 6 deletions

View file

@ -7,6 +7,7 @@ import remarkEmoji from "remark-emoji";
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
import { remarkReadingTime } from "./src/remark/remark-reading-time";
// https://astro.build/config
export default defineConfig({
@ -17,7 +18,7 @@ export default defineConfig({
site: "https://daichendt.one",
integrations: [
mdx({
remarkPlugins: [remarkEmoji],
remarkPlugins: [remarkEmoji, remarkReadingTime],
}),
sitemap(),
tailwind(),