Compare commits
No commits in common. "fix-json-ld-alt" and "master" have entirely different histories.
fix-json-l
...
master
|
@ -59,15 +59,6 @@ module Jekyll
|
|||
hash = page_drop.image.to_h
|
||||
hash["url"] = hash.delete("path")
|
||||
hash["@type"] = "imageObject"
|
||||
|
||||
if hash["alt"] && !hash["description"]
|
||||
hash["description"] = hash["alt"]
|
||||
end
|
||||
|
||||
if hash["alt"]
|
||||
hash.delete("alt")
|
||||
end
|
||||
|
||||
hash
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue