Skip to content

Commit a7ed03c

Browse files
committed
🎨 toc
1 parent 0f65e9f commit a7ed03c

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

controller/articlectl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func toc(article *ThemeArticle) string {
277277
tagName := goquery.NodeName(element)
278278
id := "toc_" + tagName + "_" + strconv.Itoa(i)
279279
element.SetAttr("id", id)
280-
builder.WriteString("<li class='toc-")
280+
builder.WriteString("<li class='toc__")
281281
builder.WriteString(tagName)
282282
builder.WriteString("'><a href=\"#")
283283
builder.WriteString(id)

0 commit comments

Comments
 (0)