mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2025-09-06 02:30:45 +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