update website release ticker via cms

This commit is contained in:
Shawn Erquhart 2018-02-27 21:53:57 -05:00
parent e27c88d767
commit 53490f73af
3 changed files with 14 additions and 12 deletions

View File

@ -6,36 +6,27 @@ updates:
- date: 2018-02-21
version: '1.2.2'
description: Fixes ES5 transpiling.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.2.2'
- date: 2018-02-21
version: '1.2.1'
description: Allows label_singular config for collections and lists and distinct frontmatter delimiters.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.2.1'
- date: 2018-02-13
version: '1.2'
description: Adds support for multiple frontmatter formats and custom delimiters, UI improvements.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.2.0'
- date: 2018-01-25
version: '1.1'
description: You can now register external backends and we improved metadata handling.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.1.0'
- date: 2018-01-23
version: '1.0.4'
description: Fixes various UI bugs and adds expand / collapse functionality to the object widget.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.0.4'
- date: 2018-12-19
version: '1.0.3'
description: Small bug fix release.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.0.3'
- date: 2018-12-07
version: '1.0.2'
description: Small bug fix release.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.0.2'
- date: 2018-12-07
version: '1.0.1'
description: Small bug fix release.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.0.1'
- date: 2018-12-07
version: '1.0.0'
description: The first major release of Netlify CMS with an all-new UI, revamped documentation and much more.
url: 'https://github.com/netlify/netlify-cms/releases/tag/1.0.0'

View File

@ -36,7 +36,7 @@
<ol>
{{ range .Site.Data.updates }}
{{ range first 3 . }}
<a href="{{ .url }}"><li><div class="update-metadata"><span class="update-version">{{ .version }}</span><span class="update-date">{{ dateFormat "January 2, 2006" .date }}</span></div><span class="update-description">{{ .description | markdownify }}</span></li></a>
<a href="https://github.com/netlify/netlify-cms/releases/tag/{{ .version }}"><li><div class="update-metadata"><span class="update-version">{{ .version }}</span><span class="update-date">{{ dateFormat "January 2, 2006" .date }}</span></div><span class="update-description">{{ .description | markdownify }}</span></li></a>
{{ end }}
{{ end }}
</ol>

View File

@ -16,9 +16,20 @@ collections: # A list of collections the CMS should be able to edit
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Position", name: "position", widget: "number"}
- {label: "Body", name: "body", widget: "markdown"}
- name: notifications
label: Notifications
- name: updates
label: Updates
files:
- name: releases
label: Releases
file: website/site/data/updates.yml
fields:
- name: updates
label: Releases
widget: list
fields:
- {name: version, label: Version}
- {name: date, label: Date, widget: date}
- {name: description, label: Description}
- name: notifications
label: Notifications
file: website/site/data/notifications.yml