Skip to content

Commit

Permalink
feat(cms): add slug field
Browse files Browse the repository at this point in the history
  • Loading branch information
kitos committed Aug 10, 2019
1 parent c25560e commit 4fa3638
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ collections:
- name: 'blog'
label: 'Blog'
folder: 'src/_content/blog'
identifier_field: 'slug'
create: true
slug: '{{slug}}'
fields:
- {
label: 'Slug',
name: 'slug',
widget: 'string',
required: true,
pattern: ['^[a-z0-9]+(?:-[a-z0-9]+)*$', 'Lol'],
}
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
- { label: 'Featured Image', name: 'thumbnail', widget: 'image' }
Expand Down

0 comments on commit 4fa3638

Please sign in to comment.