preferit / cv

Curriculum Vitae yaml 2 html converter
MIT License
0 stars 0 forks source link

Ongoing experience, use current year #4

Closed gregoryv closed 2 years ago

gregoryv commented 2 years ago

Experiences use a type Period with FromYear and ToYear fields. However currently both need to be set for the func experienceYears and periodSpan to work properly. To simplify the rendering a preprocess of the model should be done where ToYear fields are updated to time.Now().Year() if not set, ie. meaning current year. That would simplify the rendering and not require an update each year to your cv file.