summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-08-30 10:53:03 +0800
committerJSDurand <mmemmew@gmail.com>2022-08-30 10:53:03 +0800
commit22b63936dba316b78a6a2e44d6d2ea73d92a2159 (patch)
treeb982609d2a171ff9bc37fc26f29bab7ff0f88964
parentda08a90a4018b599993fdca3173f3e495ca2fc6b (diff)
org: Modify the published html again
* org-conf.el (durand-org-postamble, durand-org-publish-html-advice): Previously I used a new postamble, which caused one previous function to fail to find a certain date information. Now the new postamble uses the expected words to serve as an anchor. In addition, Org adds an attribute "role=\"doc-toc\"" to the table of contents, but this attribute is not allowed for div elements in XHTML 1.0 strict. So I remove that attribute now.
-rw-r--r--org-conf.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/org-conf.el b/org-conf.el
index 3eed2ec..142f8ac 100644
--- a/org-conf.el
+++ b/org-conf.el
@@ -616,7 +616,7 @@ CC BY-SA </a>."))
"<p class=\"copyleft\">%s</p>
<p class=\"author\">Author: %s</p>
<p class=\"email\">Email: %s</p>
-<p class=\"date\">Created: %s</p>
+<p class=\"date\">Date: %s</p>
<p class=\"creator\">%s</p>
<p class=\"validation\">%s</p>"
copyleft
@@ -1097,6 +1097,8 @@ title."
(cond
((search-forward "<style>" nil t)
(replace-match "<style type=\"text/css\">")))
+ (while (search-forward " role=\"doc-toc\"" nil t)
+ (replace-match ""))
(goto-char (point-min))
(cond
((search-forward "h1 class=\"title\"" nil t)