From 8884f430b38c39e97f1b782a832c06adaa730338 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Mon, 6 Sep 2021 14:17:22 +0800 Subject: org: conform to XHTML 1.0 strict in the website * org-conf.el (durand-org-publish-html-advice): I used the tag "time", which is not supported by XHTML 1.0 strict. Also the attribute "datetime" is invalid. So I use the "p" tag with a "subtitle" attribute to display the date/time information below the title of each article/post. Now the websites all conform to the XHTML 1.0 strict standard, which is a good thing, I surmise. --- org-conf.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/org-conf.el b/org-conf.el index cf0b9b1..22b7c45 100644 --- a/org-conf.el +++ b/org-conf.el @@ -1042,7 +1042,7 @@ title." ;; if it already has a time info, don't generate again (cond ((save-excursion (forward-char 1) - (looking-at-p "\n" - (format-time-string "%FT%T%z" date-time) + "\n

%s

\n" (format-time-string "%F" date-time))) (write-region nil nil html-file-name)))))))))) -- cgit v1.2.3-18-g5258