@@ -130,6 +130,8 @@ Contains a vector of configuration options.
- :emacs-eval - elisp code to be evaluated on the emacs process.
+- :emacs-custom-setup - elisp code that will be executed after the org file has been opened, before the org file is being exported. This allows to perform dynamic modifications on the content.
- :host - remote host to deploy to.
- :user - remote username
@@ -379,6 +381,18 @@ Posts are Maps with the following attributes:
- javadate: A java date object in case you want to perform date manipulations
+# Org Mode Content Meta
+If you're generating the posts with Emacs' org-mode, you may want to leverage the fancy org babel or other facilities, to perform code during the exporting of your posts. For example, you you may want to to execute all code blocks to also have their results visible. Some of these code blocks may calculate values that you may want to have available in your static template in order to use them somewhere else in your page template. An example would be filling your page keywords with data generated by an org code block. Static supports so called content meta information, which are meta tags that are calculated during the org mode export process and then prepended to the actual html output, i.e.
+<!-- #+tag1: tag1 contents -->
+<!-- #+tag2: tag2 contents -->
+These keywords (tag1 and tag2) are then available in your site metadata for a post.
- This is my first take on a big Clojure project after reading two books and dabbling around with the repl the code may not be good, so if you find something atrocious, just send a pull request.