Add gray matter to search index

This commit is contained in:
Sam Carlton 2022-05-15 10:57:04 -05:00
parent a1be9784a9
commit 2cd251f5ae

View file

@ -2,6 +2,7 @@ import execa from 'execa'
import fs from 'fs-extra' import fs from 'fs-extra'
import has from 'just-has' import has from 'just-has'
import TOML from '@iarna/toml' import TOML from '@iarna/toml'
import * as matter from 'gray-matter'
import { import {
@ -48,6 +49,8 @@ function makeDetailsFromListing ( listing ) {
return [ return [
listing.content || 'No content', listing.content || 'No content',
// Brownmatter
matter.stringify( '', contents ),
].join('') ].join('')
} }