replace
github.com/extemporalgnome/slug with github.com/gosimple/slug
This commit is contained in:
parent
55a37d671f
commit
2433c89334
5 changed files with 11 additions and 17 deletions
|
|
@ -10,9 +10,9 @@ import (
|
|||
"time"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/extemporalgenome/slug"
|
||||
"github.com/flosch/go-humanize"
|
||||
"github.com/flosch/pongo2/v5"
|
||||
"github.com/gosimple/slug"
|
||||
"github.com/russross/blackfriday/v2"
|
||||
)
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ func filterMarkdown(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pong
|
|||
}
|
||||
|
||||
func filterSlugify(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error) {
|
||||
return pongo2.AsValue(slug.Slug(in.String())), nil
|
||||
return pongo2.AsValue(slug.Make(in.String())), nil
|
||||
}
|
||||
|
||||
func filterFilesizeformat(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue