diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 20:06:15 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 20:06:15 +0100 |
| commit | b6e440699e9fca474869bf74ce09f2310f05c620 (patch) | |
| tree | a089f456a0e9ebb6f9f6b72370deb7eeb8a3e308 /src/plugins | |
| parent | f8a4e00f89913b0c57ca016965f49efc26f4bff9 (diff) | |
Cleanup unused functionalities
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/remark-reading-time.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/plugins/remark-reading-time.ts b/src/plugins/remark-reading-time.ts deleted file mode 100644 index 843dde1..0000000 --- a/src/plugins/remark-reading-time.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { toString as mdastToString } from "mdast-util-to-string"; -import getReadingTime from "reading-time"; - -export function remarkReadingTime() { - // @ts-expect-error:next-line - return (tree, { data }) => { - const textOnPage = mdastToString(tree); - const readingTime = getReadingTime(textOnPage); - data.astro.frontmatter.readingTime = readingTime.text; - }; -} |
