1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-02 11:44:27 +00:00

Show interactions on comments

This commit is contained in:
Jan-Lukas Else 2022-01-28 08:26:51 +01:00
parent e02ec1cd71
commit 6dc36e697f

4
ui.go
View File

@ -334,6 +334,10 @@ func (a *goBlog) renderComment(h *htmlBuilder, rd *renderData) {
hb.write(c.Comment) // Already escaped
hb.writeElementClose("p")
hb.writeElementClose("main")
// Interactions
if rd.CommentsEnabled {
a.renderInteractions(hb, rd.Blog, rd.Canonical)
}
},
)
}