Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove footer details in org-mode html export?

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?

like image 911
mart1n Avatar asked Nov 13 '12 15:11

mart1n


4 Answers

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:
like image 169
thdox Avatar answered Nov 16 '22 01:11

thdox


(setq org-export-html-postamble nil)

You can also customize the footer by modifying a variable org-export-html-postamble-format

like image 38
Oleg Pavliv Avatar answered Nov 16 '22 01:11

Oleg Pavliv


Another way to remove it on a per-file basis is

#+style: <style>#postamble { display:none; }</style>
like image 5
Yuhta Avatar answered Nov 16 '22 00:11

Yuhta


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.

like image 4
user2225804 Avatar answered Nov 16 '22 01:11

user2225804