mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-07 07:12:27 +08:00
fix article desc error
This commit is contained in:
1
db.go
1
db.go
@@ -369,6 +369,7 @@ func GenerateExcerptAndRender(artc *Article) {
|
||||
if strings.HasPrefix(artc.Content, setting.Conf.Description) {
|
||||
index := strings.Index(artc.Content, "\r\n")
|
||||
artc.Desc = IgnoreHtmlTag(artc.Content[len(setting.Conf.Description):index])
|
||||
artc.Content = artc.Content[index:]
|
||||
}
|
||||
|
||||
content := renderPage([]byte(artc.Content))
|
||||
|
||||
Reference in New Issue
Block a user