When exporting an org-mode file into html with content as simple as "Hello World!", the exported .html file contains this in the footer:
Date: 2012-11-13 16:06:19 CET
Author: <name>
Org version 7.8.11 with Emacs version 24
Validate XHTML 1.0
Is there a way to get rid of this information and just be presented with a simple "Hello World!" in the resulting .html?
You can also use, inside your org file, the below option:
#+OPTIONS: html-postamble:nil
To view most of existing html export options, type C-c C-e # html RET
in org buffer and it will insert the template of HTML options.
2014-01-21 : There is another way to answer the initial question, not yet described in any other answer. File local variable org-html-postamble set to nil. This can be done with M-x add-file-local-variable RET org-html-postamble RET nil RET. This will add lines like the following to the end of file.
# Local Variables:
# org-html-postamble: nil
# End:
(setq org-export-html-postamble nil)
You can also customize the footer by modifying a variable org-export-html-postamble-format
Another way to remove it on a per-file basis is
#+style: <style>#postamble { display:none; }</style>
I was unable to get the answer by thdox to work. To turn off postamble export on a per-file basis, I inserted
#+BIND: org-export-html-postamble nil
at the top of my file. From the org-mode manual:
If org-export-allow-bind-keywords is non-nil, Emacs variables can become buffer-local during export by using the BIND keyword. Its syntax is ‘#+BIND: variable value’. This is particularly useful for in-buffer settings that cannot be changed using specific keywords.
This should therefore work for turning off any export options on a per-file basis.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With