Skip to content

Commit

Permalink
🔍️ Set proper ProfilePage entity
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 30, 2023
1 parent 8adc936 commit 2ee96d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/server.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ server.get('*', (req, res) => {
image: oice.author.avatar,
description: oice.author.description,
url: `${baseURL}/user/${oice.author.id}`,
identifier: oice.author.id,
} : undefined,
partOfSeries: {
'@context': 'https://schema.org',
Expand Down Expand Up @@ -237,6 +238,7 @@ server.get('*', (req, res) => {
name: library.author.displayName,
image: library.author.avatar,
url: `${baseURL}/user/${library.author.id}`,
identifier: library.author.id,
}] : undefined,
}];
if (library.price) {
Expand Down Expand Up @@ -310,13 +312,13 @@ server.get('*', (req, res) => {
props.jsonLds = [{
'@context': 'https://schema.org',
'@type': 'ProfilePage',
image: [user.avatar],
author: {
mainEntity: {
'@type': 'Person',
name: user.displayName,
image: user.avatar,
description: user.description,
url: `${baseURL}/user/${user.id}`,
identifier: user.id,
},
}];
}
Expand Down

0 comments on commit 2ee96d7

Please sign in to comment.