Update lib/jekyll-seo-tag/json_ld_drop.rb

Co-authored-by: Ashwin Maroli <ashmaroli@users.noreply.github.com>
This commit is contained in:
Parker Moore 2022-02-01 22:15:34 -08:00 committed by GitHub
parent af87d9fbe8
commit 43f44d1bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ module Jekyll
def to_json(state = nil)
keys.sort.each_with_object({}) do |(key, _), result|
v = self[key]
result[key] = v if v # don't write if value is nil
result[key] = v unless v.nil?
end.to_json(state)
end