Skip to content

Commit

Permalink
fix: duplicate ld+json data (#3444)
Browse files Browse the repository at this point in the history
Co-authored-by: boc-the-git <3479092+boc-the-git@users.noreply.github.com>
  • Loading branch information
michael-genson and boc-the-git committed Apr 16, 2024
1 parent 467b9c6 commit 2ff1135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"forwardPorts": [
3000,
9000,
9091, // used by docker production
24678 // used by nuxt when hot-reloading using polling
],
// Use 'onCreateCommand' to run commands at the end of container creation.
Expand Down
8 changes: 5 additions & 3 deletions mealie/routes/spa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ def content_with_meta(group_slug: str, recipe: Recipe) -> str:
]

global __contents
__contents = inject_recipe_json(__contents, as_schema_org)
__contents = inject_meta(__contents, meta_tags)
return __contents
contents = __contents # make a local copy so we don't modify the global contents
contents = inject_recipe_json(contents, as_schema_org)
contents = inject_meta(contents, meta_tags)

return contents


def response_404():
Expand Down

0 comments on commit 2ff1135

Please sign in to comment.