Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coldacid/ox-html5-timestamp-helper

HTML5 <time> tag support for Org HTML and slimhtml export backends
https://github.com/coldacid/ox-html5-timestamp-helper

emacs html5 org-mode org-mode-export orgmode

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

#+TITLE: ox-html5-timestamp-helper
#+AUTHOR: Chris Charabaruk

The *html5-timestamp-helper* library provides HTML5

* Usage

Using this library to add

#+CAPTION: Derived backend for ox-html
#+begin_src elisp
(org-export-define-derived-backend 'custom-html
'html
:translate-alist '((timestamp . ox-html5-html-timestamp)))
#+end_src

#+CAPTION: Derived backend for ox-slimhtml
#+begin_src elisp
(org-export-define-derived-backend 'custom-slimhtml
'slimhtml
:translate-alist '((timestamp . ox-html5-slimhtml-timestamp)))
#+end_src

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=:

#+begin_src elisp
(require 'org)
(require 'ox-html5-timestamp-helper)
#+end_src