summaryrefslogtreecommitdiff
path: root/management/manager/process.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2016-12-06 15:24:36 -0800
committerGitHub <noreply@github.com>2016-12-06 15:24:36 -0800
commitf39c1519ab382a343c05163f00f38c83bff3583d (patch)
tree254f75834f2cb787179f7880b0063e667d8ad234 /management/manager/process.go
parent5527117e706114c1188afaa10188d96170874047 (diff)
parent64050ef8065bccdef0aab1748040995c637fe9ed (diff)
Merge pull request #19 from bosssauce/ponzu-dev
[core] Added account recovery process and content pagination in admin UI
Diffstat (limited to 'management/manager/process.go')
-rw-r--r--management/manager/process.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/management/manager/process.go b/management/manager/process.go
index ec09e45..ad6da94 100644
--- a/management/manager/process.go
+++ b/management/manager/process.go
@@ -5,16 +5,16 @@ import (
"strings"
"unicode"
- "github.com/bosssauce/ponzu/management/editor"
+ "github.com/bosssauce/ponzu/content"
"golang.org/x/text/transform"
"golang.org/x/text/unicode/norm"
)
// Slug returns a URL friendly string from the title of a post item
-func Slug(e editor.Editable) (string, error) {
+func Slug(i content.Identifiable) (string, error) {
// get the name of the post item
- name := strings.TrimSpace(e.ContentName())
+ name := strings.TrimSpace(i.String())
// filter out non-alphanumeric character or non-whitespace
slug, err := stringToSlug(name)