Add author to posts

This commit is contained in:
juancmandev 2025-03-26 12:41:12 -06:00
parent 2b399b3ae1
commit 27b30c2e55
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export async function GET(context: any) {
title: post.data.title,
pubDate: post.data.date,
description: post.data.description,
author: post.data.author || 'Juan Manzanero',
link: `/blog/${post.id.split('.')[0]}/`,
content: sanitizeHtml(html.toString(), {
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']),

View File

@ -59,6 +59,7 @@ export async function GET(context: any) {
title: post.data.title,
pubDate: post.data.date,
description: post.data.description,
author: post.data.author || 'Juan Manzanero',
link: `/blog/${post.id.split('.')[0]}/`,
content: sanitizeHtml(html.toString(), {
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']),