mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 01:58:00 +08:00
fix:优化TOC功能
This commit is contained in:
@@ -63,7 +63,6 @@ func (c *DocumentController) Index() {
|
||||
if bookResult.IsUseFirstDocument {
|
||||
doc, err := bookResult.FindFirstDocumentByBookId(bookResult.BookId)
|
||||
if err == nil {
|
||||
doc.AppendInfo()
|
||||
selected = doc.DocumentId
|
||||
c.Data["Title"] = doc.DocumentName
|
||||
c.Data["Content"] = template.HTML(doc.Release)
|
||||
@@ -177,7 +176,6 @@ func (c *DocumentController) Read() {
|
||||
if doc.ModifyTime != doc.CreateTime {
|
||||
docInfo += ";更新于 "
|
||||
docInfo += doc.ModifyTime.Local().Format("2006-01-02 15:04")
|
||||
doc.AppendInfo()
|
||||
}
|
||||
|
||||
if c.IsAjax() {
|
||||
|
Reference in New Issue
Block a user