mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 20:01:33 +02:00
update: migrate from content.ts to content.config.ts
This commit is contained in:
parent
9cfd0cb049
commit
4c8dff619e
10 changed files with 302 additions and 329 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue