summaryrefslogtreecommitdiff
path: root/management/manager/process.go
diff options
context:
space:
mode:
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)