Sha256: d8b3594502f6686fbc3354854f626895e781c621f03feb7a97029d6aa11ee94a

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

require "dato/utils/meta_tags/base"

module Dato
  module Utils
    module MetaTags
      class TwitterSite < Base
        def build
          card_tag("twitter:site", twitter_account) if twitter_account
        end

        def twitter_account
          site.global_seo && site.global_seo.twitter_account
        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/twitter_site.rb
dato-0.8.2 lib/dato/utils/meta_tags/twitter_site.rb
dato-0.8.1 lib/dato/utils/meta_tags/twitter_site.rb