diff options
author | Thomas Letan <lthms@soap.coffee> | 2021-03-28 20:33:19 +0200 |
---|---|---|
committer | Thomas Letan <lthms@soap.coffee> | 2021-03-28 20:33:19 +0200 |
commit | e372272dc738d8079e6ed61ec37f9abb58a6a45f (patch) | |
tree | e9af2452372f172562848ed72b32f7bd5113240c | |
parent | Fix soupault website (diff) |
Use the built-in plugin to insert the “Table of Contents” title
Thanks @dmbaturin for pointing this out!
-rw-r--r-- | site/cleopatra/soupault.org | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/site/cleopatra/soupault.org b/site/cleopatra/soupault.org index 92042c2..3cbb7a0 100644 --- a/site/cleopatra/soupault.org +++ b/site/cleopatra/soupault.org @@ -244,9 +244,10 @@ heading_links_append = true heading_link_class = "anchor-link" [widgets.append-toc-title] -widget = "preprocess_element" +widget = "insert_html" selector = "#generate-toc" -command = 'echo "<h2>Table of Contents</h2> $(cat)"' +action = "prepend_child" +html = '<h2>Table of Contents</h2>' after = "table-of-contents" #+end_src |