mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 20:01:33 +02:00
fix: correctly correspond to the og of each article
This commit is contained in:
parent
66d055f512
commit
9b9bdb2811
6 changed files with 39 additions and 32 deletions
|
@ -7,7 +7,7 @@ const blogEntries = await getCollection('posts')
|
|||
// Convert to page data objects
|
||||
const pages = Object.fromEntries(
|
||||
blogEntries.map(({ slug, data }) => [
|
||||
data.abbrlink || slug, // Prioritize using abbrlink instead of slug
|
||||
slug,
|
||||
{
|
||||
title: data.title,
|
||||
description: data.description || '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue