mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2026-03-03 14:49:11 +00:00
add search
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user