Class: Agave::Utils::MetaTags::OgType
- Defined in:
- lib/agave/utils/meta_tags/og_type.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#card_tag, #content_tag, #initialize, #meta_tag, #og_tag, #seo_field_with_fallback, #tag
Constructor Details
This class inherits a constructor from Agave::Utils::MetaTags::Base
Instance Method Details
#build ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/agave/utils/meta_tags/og_type.rb', line 8 def build if !item || item.singleton? og_tag('og:type', 'website') else og_tag('og:type', 'article') end end |