Sha256: 3603b15d955c020d193a43517f63b92ac124aa482d23e55935d063bc6d3babef

Contents?: true

Size: 393 Bytes

Versions: 26

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

require 'dato/utils/meta_tags/base'

module Dato
  module Utils
    module MetaTags
      class ArticlePublisher < Base
        def build
          og_tag('article:publisher', facebook_page_url) if facebook_page_url
        end

        def facebook_page_url
          site.global_seo && site.global_seo.facebook_page_url
        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/article_publisher.rb
dato-0.6.15 lib/dato/utils/meta_tags/article_publisher.rb
dato-0.6.14 lib/dato/utils/meta_tags/article_publisher.rb
dato-0.6.12 lib/dato/utils/meta_tags/article_publisher.rb
dato-0.6.11 lib/dato/utils/meta_tags/article_publisher.rb
dato-0.6.10 lib/dato/utils/meta_tags/article_publisher.rb