add search

This commit is contained in:
2024-12-02 10:45:22 +01:00
parent f1449a157c
commit 940cd5cea9
8 changed files with 128 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ export function remarkReadingTime() {
return function (tree, { data }) {
const textOnPage = toString(tree)
const readingTime = getReadingTime(textOnPage)
data.astro.frontmatter.text = textOnPage
data.astro.frontmatter.readingTime = readingTime
}
}