Skip to content

Conversation

@nelsonr-lopez
Copy link
Contributor

@nelsonr-lopez nelsonr-lopez commented May 16, 2025

hello!

i've been using cvfolio for my personal site and it's been awesome. really appreciate the clean design and how easy it is to customize.

i noticed the jobs weren't being sorted by date when I added more than 2 jobs, so i added a new sortJobsByDate function to utils.ts. this will sort jobs by their end date (most recent first) and then by start date. it also handles the special case where a job's end date is "Now" by using the current year.

the changes:

  • added a new sorting function in utils
  • sort the jobs before iterating in the index file
  • jobs will now display in chronological order on the homepage

i also added a .prettierrc file to enforce single quotes for strings, which should help keep the styling consistent with other collaborators.

hope this helps!

thanks for making such a great template! 🙌

@coderdiaz coderdiaz self-requested a review May 16, 2025 17:18
@coderdiaz
Copy link
Owner

Hey @nelsonr-lopez, thanks for your contribution. I'll check it out as soon as I get a chance.

@coderdiaz coderdiaz merged commit 6bfc05b into coderdiaz:main May 16, 2025
@coderdiaz
Copy link
Owner

@nelsonr-lopez It works nice! As a first approach it's pretty good, it would be nice to see a way to make it reusable for all collections, something similar to how they handle filters.

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.

2 participants