Sha256: b109e01482d0e1bb823e5991c9cf33c3e42cdcce7d700906939759612e62768a

Contents?: true

Size: 348 Bytes

Versions: 26

Compression:

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

26 entries across 26 versions & 1 rubygems

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