mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-23 06:32:28 +08:00
update
This commit is contained in:
2
db.go
2
db.go
@@ -355,7 +355,7 @@ var reg = regexp.MustCompile(setting.Conf.Identifier)
|
||||
func GenerateExcerptAndRender(artc *Article) {
|
||||
index := reg.FindStringIndex(artc.Content)
|
||||
if len(index) > 0 {
|
||||
artc.Excerpt = artc.Content[0:index[0]]
|
||||
artc.Excerpt = IgnoreHtmlTag(artc.Content[0:index[0]])
|
||||
} else {
|
||||
uc := []rune(artc.Content)
|
||||
length := setting.Conf.Length
|
||||
|
||||
Reference in New Issue
Block a user