New JSON Resume Plugin

site grav plugin php json
Lofi art style image of Peter working at his desk

I have been maintaining a version of my resume in JSON format for quite a while now. I have been maintaining it for years. I occasionally update it when things change and generate a new PDF from it. Unfortunately, it just sits idle on my site.

Last night, I decided to change it up a bit. I have created a second Grav plugin, which I creatively called 'JSON Resume'. I spent a lot of time coming up with that name. It basically does the following:

  • Creates a new resume page type.
  • Checks for an existing cached result.
  • Reads the resume.json from the page directory.
  • Parses and generates the page.
  • Caches the result for seven days.

The new resume page also provides links to the source JSON file and a PDF version, which is currently independently generated. The links are generated from data that is provided in the page Frontmatter. I also took the extra steps to add the hooks for the Grav admin web UI. Now as I learn new skills or earn certifications, I just add them to the resume.json file that I have been maintaining and clear the cache for my site. The new page get regenerated on the first visit. I also deleted my old certifications page that I had to manually update.

I am basically using this plugin as a stepping stone to a much larger project that I have been pondering for a while.I like the concept of a JSON formatted resume. It lends itself to wide array of uses. Certainly much more than the PDF version which is meant for human eyes. Although, if this does grow into a larger project, I will be switching from PHP to something that is more typical for a web service.

Previous Post