html: Export "#+HUGO: more" as <!--more-->
This commit is contained in:
parent
144f2ce84f
commit
16a978fe48
4 changed files with 17 additions and 3 deletions
|
@ -163,9 +163,11 @@ func (w *HTMLWriter) writeDrawer(d Drawer) {
|
|||
w.writeNodes(d.Children...)
|
||||
}
|
||||
|
||||
func (w *HTMLWriter) writeKeyword(k Keyword) {
|
||||
if k.Key == "HTML" {
|
||||
w.WriteString(k.Value + "\n")
|
||||
func (w *HTMLWriter) writeKeyword(kw Keyword) {
|
||||
if k, v := kw.Key, kw.Value; k == "HTML" {
|
||||
w.WriteString(v + "\n")
|
||||
} else if k == "HUGO" && v == "more" {
|
||||
w.WriteString("<!--more-->\n")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue