archive.tsx

src/app/(default)/essays/_blocks/archive.tsx
import Link from 'next/link'
import { Section } from '@/components/section'
import { Heading } from '@/components/heading'
import { Paragraph } from '@/components/paragraph'
import { Image } from '@/components/image'
import blogData from '@/../_data/_blog.json'
import { getAllCategories } from '@/utils/taxonomies'
import type { BlogPost } from '@/utils/filter-posts'
const posts = blogData as BlogPost[]
// Category display order on /essays. Slugs listed here appear first, in
// this order; any categories not listed fall through in their default order.
const CATEGORY_ORDER: string[] = []
export default function Archive() {
const categories = getAllCategories()
const orderedCategories = [...categories].sort((a, b) => {
const ai = CATEGORY_ORDER.indexOf(a.slug)

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