I am trying to set org-html-link-org-files-as-html
to nil
for a single org-file (but have the value equal t
for all other org files). This is a variable defined in ox-html.
(defcustom org-html-link-org-files-as-html t
"Non-nil means make file links to `file.org' point to `file.html'.
When `org-mode' is exporting an `org-mode' file to HTML, links to
non-html files are directly put into a href tag in HTML.
However, links to other Org-mode files (recognized by the
extension `.org.) should become links to the corresponding html
file, assuming that the linked `org-mode' file will also be
converted to HTML.
When nil, the links still point to the plain `.org' file."
:group 'org-export-html
:type 'boolean)
I have tried setting
#+OPTIONS: org-html-link-org-files-as-html:nil
and setting
# -*- org-html-link-org-files-as-html:nil; -*-
at the top of the file. Neither work - only works when I set in emacs-lisp
(setq org-html-link-org-files-as-html nil)
but then this applies to all org files. Can I set it for a single org-file?
#+BIND: org-html-link-org-files-as-html:nil
.org-export-allow-bind-keywords
also needs to be set to non-nil but then it works - can you please write it as an answer and then I can mark it as correct.