diff --git a/packages/example-site/content/project/completed-project.json b/packages/example-site/content/project/completed-project.json index 1c55734e4..654420407 100644 --- a/packages/example-site/content/project/completed-project.json +++ b/packages/example-site/content/project/completed-project.json @@ -1,26 +1,29 @@ { + "requirement": "example requirement", + "topics": [ + "example-topic" + ], + "agency": "example agency", + "keyDates": "example keyDates", + "summary": "example summary that is also testing the media folder. \n\n![A watercolor painting of a cat laying in some leaves.](/image/cat.jpg \"Cat\")", "question": "Hello world (from json)?", "mainContact": "first-contact", + "created": "2023-10-13T16:07:13.466Z", + "endDate": "2016-12-15", + "fundingInfo": "example fundingInfo", + "opportunityCloses": "2022-10-28", + "startDate": "2022-06-17", + "expertise": "example expertise", + "status": "completed", + "statusOfData": "example statusOfData", "projectTeam": [ "second-contact", "first-contact" ], "title": "completed 1", - "agency": "example agency", - "deliverable": "example deliverable", "description": "example description", "emailContent": "example emailContent", - "endDate": "2016-12-15", - "expertise": "example expertise", - "fundingInfo": "example fundingInfo", - "keyDates": "example keyDates", - "lastModified": "2022-08-31T20:33:19.394Z", - "opportunityCloses": "2022-10-28", "purpose": "example purpose", - "requirement": "example requirement", - "startDate": "2022-06-17", - "status": "completed", - "statusOfData": "example statusOfData", - "summary": "example summary", - "topics": ["example-topic"] -} + "lastModified": "2023-10-13T21:29:52.403Z", + "deliverable": "example deliverable" +} \ No newline at end of file diff --git a/packages/example-site/static/image/cat.jpg b/packages/example-site/static/image/cat.jpg new file mode 100644 index 000000000..4d3443c86 Binary files /dev/null and b/packages/example-site/static/image/cat.jpg differ diff --git a/packages/project-portal-content-netlify/src/cms/cms.js b/packages/project-portal-content-netlify/src/cms/cms.js index e306440e1..7f740d2c6 100644 --- a/packages/project-portal-content-netlify/src/cms/cms.js +++ b/packages/project-portal-content-netlify/src/cms/cms.js @@ -18,6 +18,8 @@ CMS.init({ folder: "content/project", extension: "json", create: true, + media_folder: "/static/image", + public_folder: "/image", identifier_field: "title", sortable_fields: ["title", "status", "lastModified"], preview_path: "project/{{slug}}",