4

When you export an org file to html, a date will appear in the html source though commented.

Example, line 5 of https://i.sstatic.net/Bqhn1.jpg .

2 Answers 2

4

You need to set the appropriate export option, which is timestamp. It's described at Export Settings, but I always find that section ridiculously confusing, so here are some examples:

Either globally using a variable:

(setq org-export-with-timestamps nil)

or globally using a keyword:

#+options: timestamp:nil
* headline
one two three

or on an individual headline:

* headline
#+options: timestamp:nil
one two three
1
  • OP is asking about the autogenerated timestamp that gets inserted as an HTML comment which states the time the org file was exported. Your answer is talking about user-created timestamps in the org file, which is a different thing. Commented Sep 24, 2022 at 5:17
6

To disable that globally, you can use (setq org-export-time-stamp-file nil).

2
  • 2
    This is the correct answer. Commented Sep 24, 2022 at 5:17
  • Hi @Veltas, thanks for this correction! let me update it.
    – Jason Tian
    Commented May 6, 2023 at 4:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.