Skip to content

Commit

Permalink
update website release ticker via cms
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Mar 2, 2018
1 parent 5b5e035 commit ab6c8a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
9 changes: 0 additions & 9 deletions website/site/data/updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,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'
2 changes: 1 addition & 1 deletion website/site/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h3>{{ .feature | markdownify }}</h3>
<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>
Expand Down
15 changes: 13 additions & 2 deletions website/site/static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab6c8a3

Please sign in to comment.