Class: Agave::Utils::MetaTags::OgLocale

Inherits:
Base
  • Object
show all
Defined in:
lib/agave/utils/meta_tags/og_locale.rb

Instance Attribute Summary

Attributes inherited from Base

#item, #site

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

#buildObject



8
9
10
11
# File 'lib/agave/utils/meta_tags/og_locale.rb', line 8

def build
  locale = I18n.locale
  og_tag('og:locale', "#{locale}_#{locale.upcase}")
end