LinuxBozo / jsonresume-theme-kendall

A theme for jsonresume
MIT License
54 stars 78 forks source link

Some sections are not optional #41

Open domalex opened 2 years ago

domalex commented 2 years ago

Thank you for your theme, Adam. Love it!

I forked and translated it into German. I discovered that some sections appear even though they are left empty. It would be great, you could make them disappear as described:

Every section is optional. If you do not include the publications array in your resume.json, no publications section will appear.

Sections concerned

Note: This is an example and not a complete list (e.g., awards has got the same issue)

The following sections are left empty in the resume.json file and cause different problems:

On local server

Quick fix for volunteer: remove section from resume.json and comment the related lines in index.js. The empty icon box remains.

Publications and projects work as intended and don't show.

On online server (registry.jsonresume.org/)

Error message on registry.jsonresume.org:

JSON Resume

Resume json invalid - [{"code":"PATTERN","params":["^([1-2][0-9]{3}-[0-1][0-9]-[0-3][0-9]|[1-2][0-9]{3}-[0-1][0-9]|[1-2][0-9]{3})$",""],"message":"String does not match pattern ^([1-2][0-9]{3}-[0-1][0-9]-[0-3][0-9]|[1-2][0-9]{3}-[0-1][0-9]|[1-2][0-9]{3})$: ","path":"#/projects/0/endDate","description":"e.g. 2014-06-29"}] - Please visit https://github.com/jsonresume/registry-functions/issues/27

When deleting the sections volunteer, publications and projects from the resume.json, the file renders, but the profile section shows an empty icon box.

I hope this report helps.