Cooper Oscarfono <bl...@baaa.sh> writes: > In attempting to convert the divs generated for preamble, content, and > postamble, by specifying, what I believe to be the appropriate setting > within org-publish-project-alist : > > > :html-divs '((preamble "header" :id "preamble") > (content "main" :id "content") > (postamble "footer" :id "postamble")) > > > Instead of generating <header id="preamble"...</header>, <main > id="content">...</main>, and <footer id="postamble">...</footer>, as > expected, I am generating: <nil id="nil" class="status">...</nil>, <nil > id="nil" class="content">...</nil>, and <nil id="nil" > class="status">...</nil>, respectively.
Looks like double quoting. You likely have something like (setq org-publish-project-alist '(... :html-divs '(...)) ...). Because of nested "'", the actual value of :html-divs is set to (quote (...)) and Org is not able to get preamble/contents/postamble part from there. To illustrate try the following (setq test '(:a '((preamble "a" "b")))) (assq 'preamble (plist-get test :a)) and then the same but without double quoting (setq test '(:a ((preamble "a" "b")))) (assq 'preamble (plist-get test :a)) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>