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.
Experiences use a
type Period
withFromYear
andToYear
fields. However currently both need to be set for the funcexperienceYears
andperiodSpan
to work properly. To simplify the rendering a preprocess of the model should be done where ToYear fields are updated totime.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.