Updated the slug
This commit is contained in:
parent
55abccbd02
commit
b55002bb8c
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ collections:
|
|||
- { label: 'Title', name: 'title', widget: 'string' }
|
||||
- { label: 'Author', name: 'author', widget: 'string' }
|
||||
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||
- { label: 'URL', hint: 'The final permalink will be https://shufang.org/blog/<year>-<month>-<day>-<URL>.html', name: 'customized-slug', widget: 'string' }
|
||||
- { label: 'Part of URL Slug', hint: 'The final permalink will be https://shufang.org/blog/<year>-<month>-<day>-<part of URL Slug>.html, e.g., my-first-blog', name: 'customized-slug', widget: 'string' }
|
||||
- { label: 'Draft', name: 'draft', widget: 'boolean', default: true }
|
||||
- { label: 'Description', name: 'summary', widget: 'string' }
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||
|
@ -23,13 +23,13 @@ collections:
|
|||
label: 'Post'
|
||||
folder: 'content/posts'
|
||||
create: true
|
||||
slug: '{{fields.url}}'
|
||||
slug: '{{fields.customized-slug}}'
|
||||
editor:
|
||||
preview: false
|
||||
fields:
|
||||
- { label: 'Title', name: 'title', widget: 'string' }
|
||||
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||
- { label: 'URL', hint: 'The final permalink will be https://shufang.org/<URL>.html', name: 'url', widget: 'string' }
|
||||
- { label: 'Part of URL Slug', hint: 'The final permalink will be https://shufang.org/<Part of URL Slug>.html, e.g., first-post', name: 'customized-slug', widget: 'string' }
|
||||
- { label: 'Draft', name: 'draft', widget: 'boolean', default: true }
|
||||
- { label: 'Description', name: 'description', widget: 'string' }
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||
|
|
Loading…
Reference in a new issue