kpumuk / meta-tags

Search Engine Optimization (SEO) for Ruby on Rails applications.
MIT License
2.73k stars 275 forks source link

Added support for "itemprop" in custom hashes #203

Closed kpumuk closed 3 years ago

kpumuk commented 5 years ago

I am not sure how I feel about this change yet. Basically, it starts treating itemprop attribute in a special way, applying itemprop attribute to _ tag:

display_meta_tags(
  og: {
    image: {
       _:       'image.png',
      itemprop: 'image',
      type:     'image/jpeg',
      width:    200,
      height:   {
        _:        200,
        itemprop: 'custom',
      },
    },
  },
)

Closes #198

kpumuk commented 3 years ago

Merged in https://github.com/kpumuk/meta-tags/pull/227