Added a default template for slugFormatter. Fixes #171
This commit is contained in:
parent
43c93dff26
commit
a440b370ea
@ -22,7 +22,7 @@ class LocalStorageAuthStore {
|
||||
}
|
||||
}
|
||||
|
||||
const slugFormatter = (template, entryData) => {
|
||||
const slugFormatter = (template = '{{slug}}', entryData) => {
|
||||
const date = new Date();
|
||||
const identifier = entryData.get('title', entryData.get('path'));
|
||||
return template.replace(/\{\{([^\}]+)\}\}/g, (_, field) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user