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"> <script lang="ts">
interface GraphicAuthor { interface GraphicAuthor {
name: string; name: string;
url: string; link: string;
} }
interface Props { interface Props {
@ -47,7 +47,7 @@
*/ */
updateTime?: string; 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[]; authors?: GraphicAuthor[];
} }
@ -119,10 +119,10 @@
dateCreated: publishTime, dateCreated: publishTime,
datePublished: publishTime, datePublished: publishTime,
dateModified: updateTime, dateModified: updateTime,
author: authors.map(({ name, url }) => ({ author: authors.map(({ name, link }) => ({
'@type': 'Person', '@type': 'Person',
name, name,
url, url: link,
})), })),
creator: authors.map(({ name }) => name), creator: authors.map(({ name }) => name),
articleSection: 'Graphics', articleSection: 'Graphics',