Skip to content

Commit

Permalink
Netlify CMS fields fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagotrs committed Jul 11, 2020
1 parent 536c402 commit 1769bb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions src/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ collections:
create: true
slug: "{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Banner", name: "bannerUrl", widget: "image" }
- { label: "Body", name: "body", widget: "markdown" }
- { label: "Título", name: "title", widget: "string" }
- { label: "Slug", name: "slug", widget: "string", required: false }
- { label: "Banner", name: "bannerUrl", widget: "image", required: false }
- { label: "Corpo", name: "body", widget: "markdown" }
- name: "dicas"
label: "Dicas"
folder: "src/articles"
create: true
slug: "{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Body", name: "body", widget: "markdown" }
- { label: "Título", name: "title", widget: "string" }
- { label: "Slug", name: "slug", widget: "string", required: false }
- { label: "Data", name: "date", widget: "datetime", required: false }
- { label: "Banner", name: "bannerUrl", widget: "image", required: false }
- { label: "Corpo", name: "body", widget: "markdown" }
1 change: 1 addition & 0 deletions src/articles/articles.11tydata.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = {
`dicas/${data.slug ? data.slug : "{{page.fileSlug}}"}.html`,
},
layout: "page.njk",
tags: "articles",
bannerUrl: "standard-banner.jpg",
};
1 change: 0 additions & 1 deletion src/articles/metodo-de-ensino.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
tags: articles
slug: metodo-de-ensino
title: Método de ensino da língua estrangeira
---
Expand Down

0 comments on commit 1769bb7

Please sign in to comment.