Skip to content

Commit

Permalink
feat: include identifier in JSON-LD export (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy authored Dec 15, 2023
2 parents ace06e3 + b5c7d79 commit 9d41aa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/backend/src/services/json-ld.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as SharedUtils from "@recipesage/util";
export const recipeToJSONLD = (recipe) => ({
"@context": "http://schema.org",
"@type": "Recipe",
identifier: recipe.id,
datePublished: new Date(recipe.createdAt).toISOString(),
description: recipe.description,
image: (recipe.images || []).map((image) => image.location),
Expand Down

0 comments on commit 9d41aa0

Please sign in to comment.