loup-brun / hugo-cite

📝 Easily manage your bibliography and in-text citations with Hugo, the popular static-site generator.
https://labs.loupbrun.ca/hugo-cite/
Do What The F*ck You Want To Public License
108 stars 27 forks source link

error in schema.org metadata for datePublished #46

Open HughP opened 3 years ago

HughP commented 3 years ago

greetings,

I am going through the apa-style.html document and notice that the date format in the itemprop element for datePublished does not conform to what schema.org requires. https://schema.org/datePublished can only take two types of content: Date and DateTime, both require dates formatted in ISO 8601. This is visually incompatabile with what APA (6th or 7th) calls for. So I suggest moving the datePublished metadata from a span tag to a meta tag.

Code reference: https://github.com/loup-brun/hugo-cite/blob/021e37ac2a91c95895a80ae128ec3c30c606c004/layouts/partials/bibliography/apa-style.html#L89