lib/bolognese/writers/schema_org_writer.rb in bolognese-0.9.21 vs lib/bolognese/writers/schema_org_writer.rb in bolognese-0.9.22
- old
+ new
@@ -8,16 +8,16 @@
"@type" => type,
"@id" => id,
"url" => url,
"additionalType" => additional_type,
"name" => parse_attributes(title, content: "text", first: true),
- "alternateName" => alternate_name,
+ "alternateName" => parse_attributes(alternate_name, content: "name", first: true),
"author" => to_schema_org(author),
"editor" => to_schema_org(editor),
"description" => parse_attributes(description, content: "text", first: true),
"license" => Array.wrap(license).map { |l| l["id"] }.compact.unwrap,
"version" => version,
- "keywords" => keywords,
+ "keywords" => Array.wrap(keywords).join(", ").presence,
"inLanguage" => language,
"contentSize" => content_size,
"dateCreated" => date_created,
"datePublished" => date_published,
"dateModified" => date_modified,