Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 855 Bytes

File metadata and controls

27 lines (19 loc) · 855 Bytes

Thing > CreativeWork

Schema.org

Usage

= component 'seo/schema', type: :creative_work, headline: 'Title'

This translates to:

<script type="application/ld+json">
{
    "@context" : "http://schema.org",
    "@type" : "CreativeWork",
    "headline" : "Title"
}
</script>

Options

You can pass options to the 'seo/schema' component to define values for properties. Values can either be a string, an integer, a hash (for nested types) or an array of strings, integers and/or hashes. Reference the official documentation to see what types are appropriate for which property.

List of all available options