-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update sitemap to support localization
feat: add YAML linter
- Loading branch information
1 parent
68c9f16
commit 36cba24
Showing
5 changed files
with
131 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
backend: | ||
name: git-gateway | ||
branch: main | ||
media_folder: "src/assets/uploads" | ||
public_folder: "/assets/uploads" | ||
media_folder: src/assets/uploads | ||
public_folder: /assets/uploads | ||
|
||
# Run "npx netlify-cms-proxy-server" for local backend | ||
local_backend: true | ||
editor: | ||
preview: false | ||
i18n: | ||
structure: multiple_folders | ||
locales: ["en-CA", "fr-CA"] | ||
default_locale: "en-CA" | ||
locales: [en-CA, fr-CA] | ||
default_locale: en-CA | ||
collections: | ||
- label: "Pages" | ||
label_singular: "Page" | ||
name: "page" | ||
- label: Pages | ||
label_singular: Page | ||
name: page | ||
i18n: true | ||
folder: "src/collections/pages/" | ||
extension: "md" | ||
folder: src/collections/pages/ | ||
extension: md | ||
create: true | ||
filter: {field: "layout", value: "layouts/page"} | ||
filter: {field: layout, value: layouts/page} | ||
fields: | ||
- { label: "Title", name: "title", widget: "string", i18n: true } | ||
- { label: "Layout", name: "layout", widget: "hidden", i18n: duplicate, default: "layouts/page" } | ||
- { label: "Navigation Order", name: "order", widget: "number", min: 0, i18n: duplicate } | ||
- { label: "Navigation Label", name: "key", widget: "string", required: false, i18n: true } | ||
- { label: "Excerpt", name: "excerpt", widget: "string", required: false, i18n: true } | ||
- { label: "Body", name: "body", widget: "markdown", i18n: true } | ||
- label: "Site Configuration" | ||
name: "config" | ||
- {label: Title, name: title, widget: string, i18n: true} | ||
- {label: Layout, name: layout, widget: hidden, i18n: duplicate, default: layouts/page} | ||
- {label: Navigation Order, name: order, widget: number, min: 0, i18n: duplicate} | ||
- {label: Navigation Label, name: key, widget: string, required: false, i18n: true} | ||
- {label: Excerpt, name: excerpt, widget: string, required: false, i18n: true} | ||
- {label: Body, name: body, widget: markdown, i18n: true} | ||
- label: Site Configuration | ||
name: config | ||
i18n: false | ||
files: | ||
- label: "Site Configuration" | ||
name: "config" | ||
file: "src/_data/config.json" | ||
- label: Site Configuration | ||
name: config | ||
file: src/_data/config.json | ||
fields: | ||
- { label: URL, name: url, widget: string } | ||
- { label: "Maximum Posts in RSS Feed", name: maxPostsInFeed, widget: number, min: 1, i18n: false } | ||
- label: "Site Data" | ||
name: "data" | ||
- {label: URL, name: url, widget: string} | ||
- {label: Maximum Posts in RSS Feed, name: maxPostsInFeed, widget: number, min: 1, i18n: false} | ||
- label: Site Data | ||
name: data | ||
i18n: | ||
structure: single_file | ||
files: | ||
- label: "Site Data" | ||
name: "site" | ||
file: "src/_data/site.json" | ||
- label: Site Data | ||
name: site | ||
file: src/_data/site.json | ||
i18n: true | ||
fields: | ||
- { label: Name, name: name, widget: string, i18n: true } | ||
- { label: Description, name: description, widget: text, i18n: true } | ||
- { label: "Author Name", name: authorName, widget: string, i18n: true } | ||
- { label: "Author Email", name: authorEmail, widget: string, i18n: duplicate } | ||
- { label: "Author Website", name: authorWebsite, widget: string, i18n: duplicate } | ||
- {label: Name, name: name, widget: string, i18n: true} | ||
- {label: Description, name: description, widget: text, i18n: true} | ||
- {label: Author Name, name: authorName, widget: string, i18n: true} | ||
- {label: Author Email, name: authorEmail, widget: string, i18n: duplicate} | ||
- {label: Author Website, name: authorWebsite, widget: string, i18n: duplicate} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters