coldacid / ox-html5-timestamp-helper

HTML5 <time> tag support for Org HTML and slimhtml export backends

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ox-html5-timestamp-helper

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.

Usage

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)

About

HTML5 <time> tag support for Org HTML and slimhtml export backends

License:GNU General Public License v2.0


Languages

Language:Emacs Lisp 100.0%