Sha256: 863130c192d1bb145d892cab5cd9635e12306b54ff8801e174a933c164bb244d

Contents?: true

Size: 297 Bytes

Versions: 26

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

require 'dato/utils/meta_tags/base'

module Dato
  module Utils
    module MetaTags
      class TwitterCard < Base
        def build
          card_tag('twitter:card', seo_field_with_fallback(:twitter_card, nil) || 'summary')
        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/twitter_card.rb
dato-0.6.15 lib/dato/utils/meta_tags/twitter_card.rb
dato-0.6.14 lib/dato/utils/meta_tags/twitter_card.rb
dato-0.6.12 lib/dato/utils/meta_tags/twitter_card.rb
dato-0.6.11 lib/dato/utils/meta_tags/twitter_card.rb
dato-0.6.10 lib/dato/utils/meta_tags/twitter_card.rb