Skip to content

Commit

Permalink
fix: allow editing landing page title and content via cms
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Oct 17, 2023
1 parent 2c46d04 commit a1145f4
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions src/cms/collections/pages.collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,36 @@ export const collection: CmsCollection = {
description: "",
format: "frontmatter",
files: [
/**
* NetlifyCMS currently only supports "single_file" i18n mode for file collections,
* which we don't want, so we expose two separate file entries.
*/
{
file: "content/pages/home.mdx",
name: "home",
label: "Home page",
file: "content/pages/de/home.mdx",
name: "home-de",
label: "Home page (german)",
fields: [
{
name: "title",
label: "Title",
hint: "",
},
{
name: "subtitle",
label: "Subtitle",
name: "body",
label: "Content",
hint: "",
widget: "markdown",
},
],
},
{
file: "content/pages/en/home.mdx",
name: "home-en",
label: "Home page (english)",
fields: [
{
name: "title",
label: "Title",
hint: "",
},
{
Expand Down

0 comments on commit a1145f4

Please sign in to comment.