update: migrate from content.ts to content.config.ts

This commit is contained in:
radishzzz 2025-03-30 00:57:33 +00:00
parent 9cfd0cb049
commit 4c8dff619e
10 changed files with 302 additions and 329 deletions

View file

@ -9,7 +9,7 @@ const blogEntries = await getCollection('posts')
// Convert blog entries into a lookup object with slug as key and title/description as value
const pages = Object.fromEntries(
blogEntries.map((post: CollectionEntry<'posts'>) => [
post.slug,
post.id,
{
title: post.data.title,
description: post.data.description || generateDescription(post, 'og'),