Revert "html: Export "#+HUGO: more" as <!--more-->"

This reverts commit 16a978fe48.

not needed after all - turns out hugo looks for the divider before rendering so
we can't do anything in go-org
This commit is contained in:
Niklas Fasching 2018-12-19 18:19:25 +01:00
parent 2295594970
commit 3709d1dc9c
4 changed files with 3 additions and 17 deletions

View file

@ -169,11 +169,9 @@ func (w *HTMLWriter) writeDrawer(d Drawer) {
w.writeNodes(d.Children...)
}
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")
func (w *HTMLWriter) writeKeyword(k Keyword) {
if k.Key == "HTML" {
w.WriteString(k.Value + "\n")
}
}

View file

@ -16,7 +16,3 @@ and an image with custom html attributes and a caption
kittens!
</figcaption>
</figure>
<p>
This will be exported as &lt;!more&gt; just for hugo
</p>
<!--more-->

View file

@ -12,7 +12,3 @@ and an image with custom html attributes and a caption
#+ATTR_HTML: :style height: 100%; :id overwritten
#+ATTR_HTML: :style border: 10px solid black; :id kittens
[[https://placekitten.com/200/200#.png]]
This will be exported as <!--more--> just for hugo
#+HUGO: more

View file

@ -12,7 +12,3 @@ and an image with custom html attributes and a caption
#+ATTR_HTML: :style height: 100%; :id overwritten
#+ATTR_HTML: :style border: 10px solid black; :id kittens
[[https://placekitten.com/200/200#.png]]
This will be exported as <!--more--> just for hugo
#+HUGO: more