From e372272dc738d8079e6ed61ec37f9abb58a6a45f Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Sun, 28 Mar 2021 20:33:19 +0200 Subject: =?UTF-8?q?Use=20the=20built-in=20plugin=20to=20insert=20the=20?= =?UTF-8?q?=E2=80=9CTable=20of=20Contents=E2=80=9D=C2=A0title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks @dmbaturin for pointing this out! --- site/cleopatra/soupault.org | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'site/cleopatra') 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 "

Table of Contents

$(cat)"' +action = "prepend_child" +html = '

Table of Contents

' after = "table-of-contents" #+end_src -- cgit v1.2.3