Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JSON-LD breadcrumbs #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skittles1412
Copy link

Previously JSON-LD was broken, both because the list of breadcrumbs was not wrapped in an array and because the array had a trailing comma.

I've added a dummy element [] to the end of the array to deal with the trailing comma issue. This feels a bit hacky, but I'm not sure if there's a better solution.

@tqwewe
Copy link

tqwewe commented Jul 5, 2023

Nice, thanks for this!

I also changed in the same file:

- "image": {{ page_images }},
+ "image": {% if page_images %}{{ page_images }}{% else %}""{% endif %},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants