SJRK-230: Netlify causing frontmatter to be removed from md files on SJRK site

Metadata

Source
SJRK-230
Type
Task
Priority
Major
Status
Pull Request
Resolution
N/A
Assignee
N/A
Reporter
Dana
Created
2019-02-20T12:31:30.190-0500
Updated
2019-02-27T13:41:27.598-0500
Versions
N/A
Fixed Versions
N/A
Component
  1. SoJustRepairIt.org

Description

Editing and publishing changes to the Landing page and About page on SJRK site with Netlify caused the "type" line in the frontmatter to be removed from the md files (and therefore content removed from the site).  This did not happen when editing and publishing changes to the About page and the Partners page (index files).

https://github.com/fluid-project/sojustrepairit.org/commit/fd7f70d337faae5f710d95dcb7834eb8048d0b63

https://github.com/fluid-project/sojustrepairit.org/commit/b444920e06999731f891d821a34c79cab2090b47

Comments

  • Dana commented 2019-02-20T12:31:57.999-0500

    FYI @@Jonathan Hung

  • Avtar Gill commented 2019-02-26T15:49:43.467-0500

    As mentioned earlier today during the planning meeting I found a GitHub issue thread discussing this bug and an open pull request. It looks like they are going to add a retain_unknown_fields config option in an upcoming release. I think an interim solution could be exposing all the frontmatter fields in the cms config

  • Michelle D'Souza commented 2019-02-27T13:41:27.598-0500

    I've added the 'type' field in the config for the about and landing pages. Hopefully this will fix the issue but we should keep an eye out for it.