-
Notifications
You must be signed in to change notification settings - Fork 296
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
Render og:locale meta only when defined explicitly #388
Conversation
Nice, you're fast @ashmaroli ! 👏 |
Would this enable/allow a default |
And tests need to be updated to remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going from lang to locale looks like a breaking change
Yes, it is a change in behavior, but not exactly breaking. def page_locale
(page["locale"] || site["locale"] || page["lang"] || site["lang"] || "en_US").tr("-", "_")
end |
@jekyll: merge +minor |
Render
og:locale
meta attribute only if{{ page.locale }}
has been defined.This change is so that
<html lang="{{ page.lang }}">
can be set to valid language (without territory) information.Closes #375