Sha256: a4d07255c784ffe79a4466e23e57d77ac6b715b54ad104fa1d41bf0b073c1a83

Contents?: true

Size: 350 Bytes

Versions: 26

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

require 'dato/utils/meta_tags/base'

module Dato
  module Utils
    module MetaTags
      class OgSiteName < Base
        def build
          og_tag('og:site_name', site_name) if site_name
        end

        def site_name
          site.global_seo && site.global_seo.site_name
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
dato-0.6.16 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.15 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.14 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.12 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.11 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.10 lib/dato/utils/meta_tags/og_site_name.rb