Sha256: e87e9d78bec595731d8dd23088154ba62614e8e43725ff160701967a96452aff

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true
require 'agave/utils/meta_tags/base'

module Agave
  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

4 entries across 4 versions & 1 rubygems

Version Path
agave-client-0.1.3 lib/agave/utils/meta_tags/article_publisher.rb
agave-client-0.1.2 lib/agave/utils/meta_tags/article_publisher.rb
agave-client-0.1.1 lib/agave/utils/meta_tags/article_publisher.rb
agave-client-0.1.0 lib/agave/utils/meta_tags/article_publisher.rb