Fix NetlifyCMS (#164)

* Fix NetlifyCMS Config

* Rename files to MD if they dont need MDX

* Fix link to admin UI
This commit is contained in:
Hammad Jutt
2020-11-23 11:32:09 -07:00
committed by GitHub
parent 0a05356b5e
commit e9738fed61
8 changed files with 15 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './signpost.module.scss';
const directions = [
export const directions = [
{
emoji: '👈',
label: 'Library',

View File

@@ -22,6 +22,19 @@ collections:
- {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."}
- {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."}
- {label: "Body", name: "body", widget: "markdown"}
- name: "great-houses"
label: "Great Houses"
folder: "docs/great-houses"
create: true
slug: "{{slug}}"
preview_path: "docs/great-houses/{{slug}}"
editor:
preview: false
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."}
- {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."}
- {label: "Body", name: "body", widget: "markdown"}
- name: "Guilding"
label: "Guilding"
folder: "docs/Guilding"
@@ -48,19 +61,6 @@ collections:
- {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."}
- {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."}
- {label: "Body", name: "body", widget: "markdown"}
- name: "Players"
label: "Players"
folder: "docs/Players"
create: true
slug: "{{slug}}"
preview_path: "docs/Players/{{slug}}"
editor:
preview: false
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."}
- {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."}
- {label: "Body", name: "body", widget: "markdown"}
- name: "resources"
label: "Resources"
folder: "docs/resources"

View File

@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
<link href="admin/config.yml" type="text/yaml" rel="cms-config-url">
</head>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->