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

Refactor Open Graph image #82

Merged
merged 6 commits into from
Aug 10, 2022
Merged

Conversation

paulrobertlloyd
Copy link
Collaborator

@paulrobertlloyd paulrobertlloyd commented Aug 9, 2022

govuk-frontend provides support for changing the default Open Graph image in v4.3.0. This PR removes the hacky RegEx we were using previously to configure this value, and aligns plugin option and front matter values to with the new variable:

  • options.ogImage => options.opengraphImageUrl
  • image.ogImage => image.opengraphImage
  • ogImage.src => opengraphImage.src
  • ogImage.alt => opengraphImage.alt

Given this (and other) breaking changes, probably makes sense to bundle this PR and others in the next MAJOR release, 3.0.0.

Fixes #77.

@paulrobertlloyd paulrobertlloyd requested a review from fofr August 9, 2022 17:47
@paulrobertlloyd paulrobertlloyd added this to the 3.0.0 milestone Aug 9, 2022
@paulrobertlloyd paulrobertlloyd merged commit 38bd658 into main Aug 10, 2022
@paulrobertlloyd paulrobertlloyd deleted the refactor-open-graph-image branch August 10, 2022 14:14
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.

Use new govuk-frontend method for customising Open Graph image URL
2 participants