filter-posts.ts

src/utils/filter-posts.ts
import 'server-only'
import fs from 'fs'
import path from 'path'
import FlexSearch from 'flexsearch'
import blogData from '@/../_data/_blog.json'
export interface BlogPost {
id: number
slug: string
url: string
metadata: {
title?: string
description?: string
date?: string
categories?: string[]
categorySlugs?: string[]
tags?: string[]
tagSlugs?: string[]
featuredImage?: string
featuredImageWidth?: number

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC