chore: update website for preview links (#2085)
* chore: update website for preview links * fix formatting
This commit is contained in:
parent
e26548dc22
commit
8ccbdf928e
@ -5,6 +5,7 @@ updates:
|
|||||||
- date: 2019-02-08T22:27:39.913Z
|
- date: 2019-02-08T22:27:39.913Z
|
||||||
description: 'Deploy preview links, map widget, and nested field validation'
|
description: 'Deploy preview links, map widget, and nested field validation'
|
||||||
version: 2.4.0
|
version: 2.4.0
|
||||||
|
url: 'https://www.netlifycms.org/blog/2019/02/netlify-cms-2-4-0'
|
||||||
- date: '2019-01-10'
|
- date: '2019-01-10'
|
||||||
description: Fix missing entry labels for file collections
|
description: Fix missing entry labels for file collections
|
||||||
version: 2.3.3
|
version: 2.3.3
|
||||||
|
@ -2,13 +2,12 @@ import React from 'react';
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import Markdownify from '../components/markdownify';
|
import Markdownify from '../components/markdownify';
|
||||||
|
|
||||||
const Release = ({ version, versionPrevious, date, description }) => {
|
const Release = ({ version, versionPrevious, date, description, url }) => {
|
||||||
console.log(version, versionPrevious);
|
|
||||||
const displayDate = moment(date).format('MMMM D, YYYY');
|
const displayDate = moment(date).format('MMMM D, YYYY');
|
||||||
const url = `https://github.com/netlify/netlify-cms/compare/${versionPrevious}...${version}`;
|
const defaultUrl = `https://github.com/netlify/netlify-cms/compare/${versionPrevious}...${version}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a href={url} key={version}>
|
<a href={url || defaultUrl} key={version}>
|
||||||
<li>
|
<li>
|
||||||
<div className="update-metadata">
|
<div className="update-metadata">
|
||||||
<span className="update-version">{version}</span>
|
<span className="update-version">{version}</span>
|
||||||
|
@ -74,6 +74,7 @@ const HomePage = ({ data }) => {
|
|||||||
versionPrevious={updates.updates[idx + 1].version}
|
versionPrevious={updates.updates[idx + 1].version}
|
||||||
date={node.date}
|
date={node.date}
|
||||||
description={node.description}
|
description={node.description}
|
||||||
|
url={node.url}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</WhatsNew>
|
</WhatsNew>
|
||||||
@ -127,6 +128,7 @@ export const pageQuery = graphql`
|
|||||||
date
|
date
|
||||||
description
|
description
|
||||||
version
|
version
|
||||||
|
url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,8 @@ backend:
|
|||||||
repo: netlify/netlify-cms
|
repo: netlify/netlify-cms
|
||||||
squash_merges: true
|
squash_merges: true
|
||||||
|
|
||||||
|
site_url: "https://www.netlifycms.org"
|
||||||
|
|
||||||
publish_mode: editorial_workflow
|
publish_mode: editorial_workflow
|
||||||
|
|
||||||
media_folder: "website/static/img" # Folder where user uploaded files should go
|
media_folder: "website/static/img" # Folder where user uploaded files should go
|
||||||
@ -13,6 +15,7 @@ collections: # A list of collections the CMS should be able to edit
|
|||||||
label: "Docs" # Used in the UI, ie.: "New Post"
|
label: "Docs" # Used in the UI, ie.: "New Post"
|
||||||
folder: "website/content/docs" # The path to the folder where the documents are stored
|
folder: "website/content/docs" # The path to the folder where the documents are stored
|
||||||
create: true # Allow users to create new documents in this collection
|
create: true # Allow users to create new documents in this collection
|
||||||
|
preview_path: "docs/{{slug}}"
|
||||||
fields: # The fields each document in this collection have
|
fields: # The fields each document in this collection have
|
||||||
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
|
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
|
||||||
- {label: "Group", name: "group", widget: "string"}
|
- {label: "Group", name: "group", widget: "string"}
|
||||||
@ -21,6 +24,7 @@ collections: # A list of collections the CMS should be able to edit
|
|||||||
- name: "widget_docs" # Used in routes, ie.: /admin/collections/:slug/edit
|
- name: "widget_docs" # Used in routes, ie.: /admin/collections/:slug/edit
|
||||||
label: "Widget Docs" # Used in the UI, ie.: "New Post"
|
label: "Widget Docs" # Used in the UI, ie.: "New Post"
|
||||||
folder: "website/content/docs/widgets" # The path to the folder where the documents are stored
|
folder: "website/content/docs/widgets" # The path to the folder where the documents are stored
|
||||||
|
preview_path: "docs/widgets/{{title}}"
|
||||||
create: true # Allow users to create new documents in this collection
|
create: true # Allow users to create new documents in this collection
|
||||||
fields: # The fields each document in this collection have
|
fields: # The fields each document in this collection have
|
||||||
- {label: "Name", name: "title"}
|
- {label: "Name", name: "title"}
|
||||||
@ -30,6 +34,7 @@ collections: # A list of collections the CMS should be able to edit
|
|||||||
label: "Blog"
|
label: "Blog"
|
||||||
label_singular: "Post"
|
label_singular: "Post"
|
||||||
folder: "website/content/blog"
|
folder: "website/content/blog"
|
||||||
|
preview_path: "blog/{{year}}/{{month}}/{{title}}"
|
||||||
create: true
|
create: true
|
||||||
fields:
|
fields:
|
||||||
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
|
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
|
||||||
|
1333
website/yarn.lock
1333
website/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user