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

Fallback to site name when title is empty in mirrored tags #243

Merged
merged 3 commits into from
Sep 15, 2022

Conversation

kpumuk
Copy link
Owner

@kpumuk kpumuk commented Sep 15, 2022

Addresses the edge case when a title is not specified, but requested as an open-graph mirrored attribute. In this case, we should render the site title instead.

Closes #242

Copy link

@philipithomas philipithomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Doesn't test twitter:title, but it's pretty much the same as og:title so I think that's ok.

@kpumuk kpumuk merged commit aaaa377 into main Sep 15, 2022
@kpumuk kpumuk deleted the mirror-empty-title branch September 15, 2022 21:02
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.

Fallback to site_name if title unspecified in og?
2 participants