(content string)
| 88 | } |
| 89 | |
| 90 | func convertChinese(content string) string { |
| 91 | has := checker.IsChinese(content) |
| 92 | if !has { |
| 93 | return content |
| 94 | } |
| 95 | return strings.Join(pinyin.LazyConvert(content, nil), "-") |
| 96 | } |
| 97 | |
| 98 | func cutLongTitle(title string) string { |
| 99 | maxBytes := 150 |