Export html from org-mode: custom date format

冷暖自知 提交于 2019-12-04 15:43:38

问题


I am exporting org files to html. I am using Org-mode 7.9.3f with Emacs 24.

How can I get a custom time format in the postamble?

I tried setting the variable org-export-html-postamble-format to

(setq org-export-html-postamble-format 
       '(("en" "<p class=\"date\">Date: %d</p>")))

Then the time format looks like this: 2013-07-16T21:20+0200

I would like to have only the date: 2013-07-16, i.e %y-%m-%d.


回答1:


You should try:

(setq org-export-html-date-format-string "%Y-%m-%d")


来源:https://stackoverflow.com/questions/17685469/export-html-from-org-mode-custom-date-format

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!