The html5-timestamp-helper library provides HTML5 <time> tag export for timestamps from Org mode. It provides transcoder methods for both Org’s default HTML export backend as well as for the ox-slimhtml export backend.
Using this library to add <time> tag support requires defining derived export backends.
Depending on which backend you are using for HTML export, you should add one or both of the following blocks to your init.el
file:
(org-export-define-derived-backend 'custom-html
'html
:translate-alist '((timestamp . ox-html5-html-timestamp)))
(org-export-define-derived-backend 'custom-slimhtml
'slimhtml
:translate-alist '((timestamp . ox-html5-slimhtml-timestamp)))
Ensure that you have included both the org and ox-html5-timestamp-helper packages earlier in your init.el
file.
If you have installed Org and ox-html5-timestamp-helper through ELPA, you should be fine.
Otherwise, you should place these lines early in init.el
:
(require 'org)
(require 'ox-html5-timestamp-helper)