Sha256: 315f946a34be72322dec1f489045aa608ea7b428e6659d31a4a925bb8225c72a

Contents?: true

Size: 349 Bytes

Versions: 43

Compression:

Stored size: 349 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

43 entries across 43 versions & 1 rubygems

Version Path
dato-0.6.9 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.8 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.7 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.6 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.5 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.3 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.3.beta lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.2 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.1 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.6.0 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.5.1 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.5.0 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.4.3 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.4.2 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.4.1 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.4.0 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.3.31 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.4.0.pre lib/dato/utils/meta_tags/og_site_name.rb
dato-0.3.30 lib/dato/utils/meta_tags/og_site_name.rb
dato-0.3.29 lib/dato/utils/meta_tags/og_site_name.rb