src/utils/filter-posts.tsimport 'server-only'import fs from 'fs'import path from 'path'import FlexSearch from 'flexsearch'import blogData from '@/../_data/_blog.json'export interface BlogPost {id: numberslug: stringurl: stringmetadata: {title?: stringdescription?: stringdate?: stringcategories?: string[]categorySlugs?: string[]tags?: string[]tagSlugs?: string[]featuredImage?: stringfeaturedImageWidth?: number
Showing the first 20 lines.
Get full code