mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
调整
This commit is contained in:
2
db.go
2
db.go
@@ -353,7 +353,6 @@ func ManageArchivesArticle(artc *Article, s bool, do string) {
|
|||||||
var reg = regexp.MustCompile(setting.Conf.Identifier)
|
var reg = regexp.MustCompile(setting.Conf.Identifier)
|
||||||
|
|
||||||
func GenerateExcerptAndRender(artc *Article) {
|
func GenerateExcerptAndRender(artc *Article) {
|
||||||
artc.Content = string(renderPage([]byte(artc.Content)))
|
|
||||||
index := reg.FindStringIndex(artc.Content)
|
index := reg.FindStringIndex(artc.Content)
|
||||||
if len(index) > 0 {
|
if len(index) > 0 {
|
||||||
artc.Excerpt = IgnoreHtmlTag(artc.Content[0:index[0]])
|
artc.Excerpt = IgnoreHtmlTag(artc.Content[0:index[0]])
|
||||||
@@ -365,6 +364,7 @@ func GenerateExcerptAndRender(artc *Article) {
|
|||||||
}
|
}
|
||||||
artc.Excerpt = IgnoreHtmlTag(string(uc[0:length]))
|
artc.Excerpt = IgnoreHtmlTag(string(uc[0:length]))
|
||||||
}
|
}
|
||||||
|
artc.Content = string(renderPage([]byte(artc.Content)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// 读取草稿箱
|
// 读取草稿箱
|
||||||
|
|||||||
Reference in New Issue
Block a user