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: revert language logic and introduce meta lang #49

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

SethFalco
Copy link
Member

Partly reverts one of the changes made in #48 which makes a change that doesn't completely adhere to the JSON Resume spec.

The JSON Resume spec expects languages to be defined using a natural language name, not a language code. Using this properly differently is expected and ultimately makes this incompatible with other themes which defeats the point of the standard.

Instead, we'll use a custom property in meta that users can choose to use.

Does the following:

  • Reads meta.language to set the document language.
  • Makes the <head> section of the template a lot more defensive, as every field is optional.

@SethFalco SethFalco merged commit a36784b into jsonresume:main Dec 4, 2023
1 check passed
@SethFalco SethFalco deleted the language branch December 4, 2023 14: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.

1 participant