diff options
Diffstat (limited to 'management/manager/process.go')
-rw-r--r-- | management/manager/process.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/manager/process.go b/management/manager/process.go index ddae024..c759bf2 100644 --- a/management/manager/process.go +++ b/management/manager/process.go @@ -13,7 +13,7 @@ import ( // Slug returns a URL friendly string from the title of a post item func Slug(e editor.Editable) (string, error) { // get the name of the post item - name := e.ContentName() + name := strings.TrimSpace(e.ContentName()) // filter out non-alphanumeric character or non-whitespace slug, err := stringToSlug(name) |