mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add gray matter to search index
This commit is contained in:
parent
a1be9784a9
commit
2cd251f5ae
1 changed files with 3 additions and 0 deletions
|
|
@ -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('')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue