Add unicode support for aliases, indexes, urlize template filter.

Now aliases and indexes are not restricted ASCII letters and can include
any unicode letters.
This commit is contained in:
Anton Ageev
2014-02-02 18:18:01 +04:00
committed by spf13
parent 24ffe04360
commit 11ca84f8cb
5 changed files with 77 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ type OrderedIndexEntry struct {
// KeyPrep... Indexes should be case insensitive. Can make it easily conditional later.
func kp(in string) string {
return helpers.Urlize(in)
return helpers.MakePath(in)
}
func (i Index) Get(key string) WeightedPages { return i[kp(key)] }