From 8f64522e8985d0e133751cdda920af032b01c2a5 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Wed, 23 Mar 2022 23:52:25 +0800 Subject: org: refine the blog publishing functions * org-conf.el (durand-org-publish-sitemap): Add a heading so that the generated HTML will be displayed correctly. I don't why this makes a difference, but in my browser it behaves this way. (durand-org-post-process): Refine a wording in a comment. --- org-conf.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org-conf.el b/org-conf.el index 2301733..c7e4d42 100644 --- a/org-conf.el +++ b/org-conf.el @@ -739,7 +739,8 @@ REP is a representation of the files and directories in the project. Use such functions as `org-list-to-org' or `org-list-to-subtree' to transform it." (format "#+TITLE: %s\n#+AUTHOR: JSDurand\n%s\n#+DATE: <%s>\n\n%s\n\ -\n#+ATTR_HTML: :border nil :rules nil :frame nil\n\ +\n* Latest updates:\n\n\ +#+ATTR_HTML: :border nil :rules nil :frame nil\n\ %s\n\n\ [[https://jsdurand.xyz/%s][Web feed]]" title @@ -908,7 +909,7 @@ The feeds are generated by the function `durand-org-generate-atom-feed'." pos pos-2 temp temp-time) (while (re-search-forward regexp nil t) (setq pos (point)) - ;; replace the first org-left by org-right + ;; replace org-left by org-right (save-excursion (goto-char (match-beginning 0)) (setq pos-2 (match-end 0)) -- cgit v1.2.3-18-g5258