Being able to :ignore: org headings is so handy

This commit is contained in:
tecosaur 2020-04-20 16:00:14 +08:00
parent 18b9b6b985
commit ecfc138930
1 changed files with 10 additions and 0 deletions

View File

@ -1806,6 +1806,16 @@ There's also this lovely equation numbering stuff I'll nick
#+BEGIN_SRC emacs-lisp
(after! org (setq org-export-headline-levels 5)) ; I like nesting
#+END_SRC
I'm also going to make use of an item in =ox-extra= so that I can add an =:ignore:=
tag to headings for the content to be kept, but the heading itself ignored
(unlike =:noexport:= which ignored both heading and content). This is useful when
I want to use headings to provide a structure for writing that doesn't appear in
the final documents.
#+BEGIN_SRC emacs-lisp
(after! org
(require 'ox-extra)
(ox-extras-activate '(ignore-headlines)))
#+END_SRC
**** Exporting to HTML
***** Custom CSS/JS
There is a fantastic exporter config ([[https://github.com/fniessen/org-html-themes][fniessen/org-html-themes]]) which we can