diff options
author | JSDurand <mmemmew@gmail.com> | 2022-03-23 23:52:25 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-03-23 23:52:25 +0800 |
commit | 8f64522e8985d0e133751cdda920af032b01c2a5 (patch) | |
tree | ee7b837747cce1687ed6984dc540ba27615927fe /org-conf.el | |
parent | 3a67a31c2d92524c6937e29af6d2e8e3d7ec836b (diff) |
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.
Diffstat (limited to 'org-conf.el')
-rw-r--r-- | org-conf.el | 5 |
1 files 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)) |