Sha256: a76b110560c4b30ea37f1faf3ef1eb009e3ebcc2df16c768c064406839322f34

Contents?: true

Size: 1.19 KB

Versions: 23

Compression:

Stored size: 1.19 KB

Contents

name: Machine readable metadata
description: Generates schema.org JSON-LD for use by search engines
body: |
  This component doesn't output anything visible. It generates "structured data"
  in JSON-LD format, with [schema.org](http://schema.org) schemas.
accessibility_criteria: |
  The HTML should not be visible.
display_html: true
examples:
  default:
    data:
      content_item:
        title: "A title"
        base_path: "/foo"
        details: {}
      schema: :article

  with_description:
    data:
      content_item:
        title: "A title"
        base_path: "/foo"
        details: {}
      schema: :article
      description: "Some manually set description of the page"

  with_canonical_url:
    data:
      content_item:
        title: "A title"
        base_path: "/foo"
        details: {}
      schema: :article
      canonical_url: "https://www.gov.uk/foreign-travel-advice/andorra/health"
  with_body:
    data:
      content_item:
        title: "A title"
        base_path: "/foo"
        details: {}
      schema: :article
      body: "Some other body"
  person_schema:
    data:
      content_item:
        title: "A. Person"
        base_path: "/foo"
        details: {}
      schema: :person

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
govuk_publishing_components-9.8.0 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.7.0 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.6.0 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.5.3 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.5.2 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.5.1 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.5.0 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.4.0 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.3.6 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.3.5 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.3.4 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.3.3 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.3.2 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.3.1 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.3.0 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.2.3 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.2.2 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.2.1 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.2.0 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml
govuk_publishing_components-9.1.1 app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml