Sha256: fc46f91b81435c2c72a0d4e3ef1f3bffdf8256ff48acec0274920ee5789b2a7c

Contents?: true

Size: 347 Bytes

Versions: 49

Compression:

Stored size: 347 Bytes

Contents

# frozen_string_literal: true
require 'dato/utils/meta_tags/base'

module Dato
  module Utils
    module MetaTags
      class OgType < Base
        def build
          if !item || item.singleton?
            og_tag('og:type', 'website')
          else
            og_tag('og:type', 'article')
          end
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

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