diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-06 09:54:14 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-06 09:54:14 -0800 |
commit | 4e5f54cf8f64b849bf2fbdd610012ebeb7786091 (patch) | |
tree | 6fd9394a1b5a4733a7d20067b8c588ee5fcd8fc4 /management/manager | |
parent | 40b5cfe2289b179c511a6c73757bb64228f0bc82 (diff) |
removing ContentName() from editor.Editble and adding String() to content.Identifiable so embedded Items can manage display names by default, but easily overridden
Diffstat (limited to 'management/manager')
-rw-r--r-- | management/manager/process.go | 6 |
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) |