@@ -2,9 +2,11 @@ import { FileContributor, Frontmatter } from "@/lib/types"
22
33import PageJsonLD from "@/components/PageJsonLD"
44
5- import { BASE_GRAPH_NODES , REFERENCE } from "@/lib/jsonld/constants"
65import { normalizeUrlForJsonLd } from "@/lib/utils/url"
76
7+ import { BASE_GRAPH_NODES , REFERENCE } from "@/lib/jsonld/constants"
8+ import { resolveAuthorsFromFrontmatter } from "@/lib/jsonld/utils"
9+
810export default async function SlugJsonLD ( {
911 locale,
1012 slug,
@@ -49,18 +51,23 @@ export default async function SlugJsonLD({
4951 url : contributor . html_url ,
5052 } ) )
5153
54+ const { authorGraphNodes, authorIds } = resolveAuthorsFromFrontmatter (
55+ frontmatter . authors ?? frontmatter . author
56+ )
57+
5258 const jsonLd = {
5359 "@context" : "https://schema.org" ,
5460 "@graph" : [
5561 ...BASE_GRAPH_NODES ,
62+ ...authorGraphNodes ,
5663 {
5764 "@type" : "WebPage" ,
5865 "@id" : url ,
5966 name : frontmatter . title ,
6067 description : frontmatter . description ,
6168 url : url ,
6269 inLanguage : locale ,
63- author : [ REFERENCE . ETHEREUM_COMMUNITY ] ,
70+ author : authorIds ,
6471 contributor : contributorList ,
6572 isPartOf : REFERENCE . ETHEREUM_ORG_WEBSITE ,
6673 breadcrumb : {
@@ -79,7 +86,7 @@ export default async function SlugJsonLD({
7986 image : frontmatter . image
8087 ? `https://ethereum.org${ frontmatter . image } `
8188 : undefined ,
82- author : [ REFERENCE . ETHEREUM_COMMUNITY ] ,
89+ author : authorIds ,
8390 contributor : contributorList ,
8491 publisher : REFERENCE . ETHEREUM_FOUNDATION ,
8592 dateModified : frontmatter . published ,
0 commit comments