-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add improvements in json ld definition for webpage #56
base: dev
Are you sure you want to change the base?
Conversation
.creator((props.creators ?? [])|map(org => organization(org))|default(null)) | ||
.copyrightHolder((props.authors.organizations ?? [])|map(org => organization(org))|default(null)) | ||
.copyrightYear(props.dateCreated|date('Y')) | ||
.id(siteUrl|default(null)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? All webpage id
values will end up being the same. Previously this was being set to props.url ~ '#webpage'
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On reference URL, it was updated intentionally to siteUrl
so I did here as well but I think keeping it props.url ~ '#webpage'
would be better. Reverted now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for one being better than the other?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping it siteUrl
will make it the same for all web pages and the Id
should be unique for each webpage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pl-mnm Can you chime in here? The older code in the boilerplate has the webpage ID set to props.url ~ '#webpage'
but the newer versions of our JSON-LD code, like in Blume, have the ID set to siteUrl
.
.id(props.url ~ '#webpage') |
- What is the ID supposed to be?
- What should we retain in the boilerplate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tbh I'm not sure I understood all these subtleties. This is something @souvikdg and I had come up with and I think he'll be better placed to tell us what's required.
No description provided.