Add author to posts
This commit is contained in:
parent
2b399b3ae1
commit
27b30c2e55
@ -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']),
|
||||
|
@ -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']),
|
||||
|
Loading…
x
Reference in New Issue
Block a user