changes author url to link to align with publisher

This commit is contained in:
hobbes7878 2025-03-12 12:33:13 +00:00
parent d715a7c2a6
commit 02efac9e5b
Failed to extract signature

View file

@ -2,7 +2,7 @@
<script lang="ts">
interface GraphicAuthor {
name: string;
url: string;
link: string;
}
interface Props {
@ -47,7 +47,7 @@
*/
updateTime?: string;
/**
* Array of authors for the piece. Each author object must have `name` and `url` attributes.
* Array of authors for the piece. Each author object must have `name` and `link` attributes.
*/
authors?: GraphicAuthor[];
}
@ -119,10 +119,10 @@
dateCreated: publishTime,
datePublished: publishTime,
dateModified: updateTime,
author: authors.map(({ name, url }) => ({
author: authors.map(({ name, link }) => ({
'@type': 'Person',
name,
url,
url: link,
})),
creator: authors.map(({ name }) => name),
articleSection: 'Graphics',