Skip to content

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

License

Notifications You must be signed in to change notification settings

coldacid/ox-html5-timestamp-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks