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

Add support for translatable/customizable section titles in the cv page #2543

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

Conversation

romanescherrer
Copy link

This PR adds support for translating or customizing section title in the resume from the _config.yamlfile. This feature enhances the internationalization of the al-folio theme, allowing users to customize the section titles without modifying the liquid template directly.

Modification

  • added a sectiontitleparameter in the _config.ymlto store translations for section titles.
  • Updated cv.liquid to use titles from sectiontitleif available, defaulting to the original section name if a translation is not provided.
  • Updated the documentation in CUSTOMIZE.md to explain how to used this new feature.

Example (in French)

# _config.yml 
sectiontitles:
  basics: Informations personnelles
  work: experiences
  education: # Leave it blank for the default title
  publications:
  projects: projets
  volunteer:
  awards:
  certificates:
  skills: Compétences
  languages: langues
  interests: hobbits
  references:

@george-gca
Copy link
Collaborator

For a version of al-folio with support for localization, I recommend my fork of it, which was created specifically for this.

@romanescherrer
Copy link
Author

@george-gca, thank you for sharing your impressive work. I'm considering using it for my website :). Nevertheless, I believe it's important to accommodate users who might want to customize the title sections on the CV page. For instance, some might prefer to change 'Basic' to 'Personal Informations' or translate it into another language.

@@ -641,3 +641,18 @@ jsonresume:
- languages
- interests
- references

# Customize the section titles in the cv page, leave it blank for default
sectiontitles:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe it's best to use sections_titles instead. jsonresume is only in a single word because it is the name of the library.

@@ -641,3 +641,18 @@ jsonresume:
- languages
- interests
- references

# Customize the section titles in the cv page, leave it blank for default
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add to this comment the info about it only being used when the cv is loaded from jsonr. Even though it is in that section in _config.yml, it's better to make it clear.

@george-gca
Copy link
Collaborator

@alshedivat @pourmand1376 @arunoruto any thoughts on this PR?

@CheariX
Copy link
Contributor

CheariX commented Jul 10, 2024

My five cents: our config.yml is growing a lot. Do we really want to have so many config parameters in it? Wouldn't it be better to make it configurable on a per-site basis, e.g. in cv.md?

@george-gca
Copy link
Collaborator

I agree with @CheariX. This would be better as an option in the page itself.

Copy link

stale bot commented Sep 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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.

3 participants