Gendre Sébastien 75f0bc00c8 Org_emacs_reader: Finish variables and class renames 7 lat temu
..
LICENSE 6cb52d72db Rename org_reader plugin to org_emacs_reader 7 lat temu
README.md cfcba6ea58 org_emacs_reader: Replace all "org_reader" by "org_emacs_reader" 7 lat temu
__init__.py 31e97b27c4 org_emacs_reader: Adapte init file to new plugin name 7 lat temu
org_reader.el 6cb52d72db Rename org_reader plugin to org_emacs_reader 7 lat temu
org_reader.py 75f0bc00c8 Org_emacs_reader: Finish variables and class renames 7 lat temu

README.md

Org Emacs Reader

Publish Emacs Org files alongside the rest of your website or blog.

  • ORG_EMACS_READER_EMACS_LOCATION: Required. Location of Emacs binary. If you use Emacs for Mac OS X, the location should be /Applications/Emacs.app/Contents/MacOS/Emacs, rather than /usr/bin/emacs.

  • ORG_EMACS_READER_EMACS_SETTINGS: Optional. An absolute path to an Elisp file, to run per invocation. Useful for initializing the package Emacs library if that's where your Org mode comes from, or any modifications to Org Export- related variables. If you want to use your standard emacs init file, you can ignore this variable.

  • ORG_EMACS_READER_BACKEND: Optional. A custom backend to provide to Org. Defaults to 'html.

To provide metadata to Pelican, the following properties can be defined in the org file's header:

#+TITLE: The Title Of This BlogPost
#+DATE: 2001-01-01
#+CATEGORY: blog-category
#+AUTHOR: My Name
#+PROPERTY: LANGUAGE en
#+PROPERTY: SUMMARY hello, this is the description
#+PROPERTY: SLUG test_slug
#+PROPERTY: MODIFIED [2015-12-29 Di]
#+PROPERTY: TAGS my, first, tags
#+PROPERTY: SAVE_AS alternative_filename.html
  • The TITLE is the only mandatory header property
  • Timestamps (DATE and MODIFIED) are optional and can be either a string of %Y-%m-%d or an org timestamp
  • The property names (SUMMARY, SLUG, MODIFIED, TAGS, SAVE_AS) can be either lower-case or upper-case
  • The slug is automatically the filename of the Org file, if not explicitly specified
  • It is not possible to pass an empty property to Pelican. For this plugin, it makes no difference if a property is present in the Org file and left empty, or if it is not defined at all.