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

Schema.org/Article has some errors #6050

Closed
sshcli opened this Issue Jul 18, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@sshcli
Member

sshcli commented Jul 18, 2018

Steps to reproduce the behavior:
Run validation here:
https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fk51.jobsnear.net%2Fwelcome-mat%2F1-welcome-to-kunena

Expected behavior
No errors

Actual result
errorarticle

System information (please complete the following information)
Joomla version: 3.8.10
Kunena version: 5.1.3-DEV
Php version: 7.2.7
Database version: MySQL 5.6.39

@sshcli

This comment has been minimized.

Member

sshcli commented Jul 18, 2018

To fix the article issue, you could take some ideas from the example below:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "NewsArticle",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://google.com/article"
  },
  "headline": "Article headline",
  "image": [
    "https://example.com/photos/1x1/photo.jpg"
   ],
  "datePublished": "2015-02-05T08:00:00+08:00",
  "dateModified": "2015-02-05T09:20:00+08:00",
  "author": {
    "@type": "Person",
    "name": "John Doe"
  },
   "publisher": {
    "@type": "Organization",
    "name": "Google",
    "logo": {
      "@type": "ImageObject",
      "url": "https://google.com/logo.jpg"
    }
  },
  "description": "A most wonderful article"
}
</script>
@sshcli

This comment has been minimized.

Member

sshcli commented Jul 18, 2018

810 added a commit that referenced this issue Jul 18, 2018

810 added a commit that referenced this issue Jul 18, 2018

@810 810 added enhance 5.1 labels Jul 18, 2018

@810 810 added this to the 5.1.3 milestone Jul 18, 2018

@810 810 closed this Jul 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment