Module: Jekyll::SeoTag::JSONLD

Defined in:
lib/jekyll-seo-tag/json_ld.rb

Overview

This module is deprecated, but is included in the Gem to avoid a breaking change and should be removed at the next major version bump

Constant Summary collapse

METHODS_KEYS =
{
  :json_context   => "@context",
  :type           => "@type",
  :name           => "name",
  :page_title     => "headline",
  :json_author    => "author",
  :json_image     => "image",
  :date_published => "datePublished",
  :date_modified  => "dateModified",
  :description    => "description",
  :publisher      => "publisher",
  :main_entity    => "mainEntityOfPage",
  :links          => "sameAs",
  :canonical_url  => "url",
}.freeze

Instance Method Summary collapse

Instance Method Details

#json_ldObject

Self should be a Jekyll::SeoTag::Drop instance (when extending the module)


25
26
27
28
# File 'lib/jekyll-seo-tag/json_ld.rb', line 25

def json_ld
  Jekyll.logger.warn "Jekyll::SeoTag::JSONLD is deprecated"
  @json_ld ||= JSONLDDrop.new(self)
end