I am using org mode to write blogs, after publishing the project, I found the titles of the html has an line number before it. as below:

enter image description here

This is the original org file: enter image description here

I don't like this. Is there a way to eliminate the number before title after exporting to html?

and this is my publish config:

(setq org-publish-project-alist
 :base-directory "/Users/blog/org/post/"
 :publishing-directory "/Users/blog/_posts/"
 :prepare-function nil
 :completion-function nil
 :exclude "*.html"
 :recursive nil
 :base-extension "org"
 :publishing-function org-html-publish-to-html
 :section-number nil
 :headline-levels nil
 :body-only t
  • Upvote when answer is good...
    – mankoff
    Commented Nov 27, 2015 at 17:16

1 Answer 1


file specific option: #+OPTIONS: num:nil

You may customize "org-export-with-section-numbers" to change the option globally, say: "(setq org-export-with-section-numbers nil)"

Here is document of it:

org-export-with-section-numbers is a variable defined in `ox.el'. Its value is t

Documentation: Non-nil means add section numbers to headlines when exporting.

When set to an integer n, numbering will only happen for headlines whose relative level is higher or equal to n.

This option can also be set with the OPTIONS keyword, e.g. "num:t".

You can customize this variable.


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.