Skip to content

Add present-label parameter to period_worked for configurable "Present" handling - #3

Open
ananyatimalsina wants to merge 5 commits into
steadyfall:mainfrom
ananyatimalsina:main
Open

Add present-label parameter to period_worked for configurable "Present" handling#3
ananyatimalsina wants to merge 5 commits into
steadyfall:mainfrom
ananyatimalsina:main

Conversation

@ananyatimalsina

Copy link
Copy Markdown

Summary

This PR updates the period_worked function in resume.typ to align with maintainer feedback and provide a cleaner, more flexible way to handle ongoing periods.


Changes

  • Added an optional present-label parameter (default: "Present").
  • Required end-date to always be a datetime.
  • Replaced implicit "Present" string detection with an explicit check:
    • If end-date == datetime.today(), display the present-label.
    • Otherwise, display the formatted end-date.

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