Skip to content

Implement the BlogPosting schema.org for BlogPosts #13246

@andreslucena

Description

@andreslucena

Ref: MGOV02

Is your feature request related to a problem? Please describe.
As a visitor that is searching information about a Blog post in Decidim using an external search portal (like google.com), I don’t have metadata available in the external page about the Post.

Describe the solution you'd like
To have this rich information in the external search portal or tool, by implementing the BlogPosting schema.org JSON-LD specification. For this, we will follow the examples available in Google’s documentation, the “Article (Article, NewsArticle, BlogPosting) structured data”:

Article graphic according to Google documentation

<html>
  <head>
    <title>Title of a News Article</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "NewsArticle",
      "headline": "Title of a News Article",
      "image": [
        "https://example.com/photos/1x1/photo.jpg",
        "https://example.com/photos/4x3/photo.jpg",
        "https://example.com/photos/16x9/photo.jpg"
       ],
      "datePublished": "2024-01-05T08:00:00+08:00",
      "dateModified": "2024-02-05T09:20:00+08:00",
      "author": [{
          "@type": "Person",
          "name": "Jane Doe",
          "url": "https://example.com/profile/janedoe123"
        },{
          "@type": "Person",
          "name": "John Doe",
          "url": "https://example.com/profile/johndoe123"
      }]
    }
    </script>
  </head>
  <body>
  </body>
</html>

See the Google page for in-detail explanation of the different attributes and its format.

Describe alternatives you've considered

Instead of schema.org (JSON-LD), we could implement RDF, but it isn’t widely used and implemented by other external tools/pages.

Additional context
See:

Does this issue could impact on users private data?

No, it’s already public data

Acceptance criteria

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Merged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions