changes author url to link to align with publisher
This commit is contained in:
parent
d715a7c2a6
commit
02efac9e5b
1 changed files with 4 additions and 4 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue