Skip to content
Permalink
Browse files

feat(cms): add slug field

  • Loading branch information
kitos committed Aug 10, 2019
1 parent c25560e commit 4fa3638aec841e607638f815eb6c8ba3adc55454
Showing with 8 additions and 0 deletions.
  1. +8 −0 static/admin/config.yml
@@ -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' }

0 comments on commit 4fa3638

Please sign in to comment.
You can’t perform that action at this time.