add json_ld back to JSONLD to avoid a breaking change
This commit is contained in:
parent
3ef2f613e9
commit
83d420113c
|
@ -1,7 +1,8 @@
|
|||
module Jekyll
|
||||
class SeoTag
|
||||
# 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
|
||||
module JSONLD
|
||||
# Unused, but here to preserve backwards compatability
|
||||
METHODS_KEYS = {
|
||||
:json_context => "@context",
|
||||
:type => "@type",
|
||||
|
@ -17,6 +18,12 @@ module Jekyll
|
|||
:links => "sameAs",
|
||||
:canonical_url => "url",
|
||||
}.freeze
|
||||
|
||||
# Self should be a Jekyll::SeoTag::Drop instance (when extending the module)
|
||||
def json_ld
|
||||
Jekyll.logger.warn "Jekyll::SeoTag::JSONLD is deprecated"
|
||||
@json_ld ||= JSONLDDrop.new(self)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue