Sha256: 7a45bc6ca035139af01f7b7a281394c28a6e3610272388091f2a96cd3a21a75d

Contents?: true

Size: 348 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
dato-0.8.3 lib/dato/utils/meta_tags/og_type.rb
dato-0.8.2 lib/dato/utils/meta_tags/og_type.rb
dato-0.8.1 lib/dato/utils/meta_tags/og_type.rb