Dear all, Another fanatical Org-mode convert new to the list. Following the 'advice' of [1] I am attempting to generate my personal website using Org publishing, but I'm running up against a pretty weird bug when I try to export inline images. The code gets rendered so that the HTML appears in the browser literally; hitting view-source, instead of
<img src="img/avi.gif" alt="img/avi.gif" /> Org seems to be outputting <img src="img/avi.gif" alt="img/avi.gif" /> which obviously doesn't appear as an image. The code in the org file is just [[file:img/avi.gif]]. Any idea why this might be? Publishing configuration follows.[2] Excited about what I can do with Org publishing; thanks in advance for any assistance. S [1] http://mph.puddingbowl.org/2010/02/org-mode-in-your-pocket-is-a-gnu-shaped-devil/ [2] From my Org init file. Sitemap is published seperately so that I can apply body-only so that it can be included with SSI. This works very well. === (require 'org-publish) (setq org-publish-project-alist '( ("org-notes" :base-directory "~/tmp/org-html-export/" :base-extension "org" :publishing-directory "/srv/http/v7g" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 ; Just the default for this project. ; :auto-preamble t :auto-sitemap t ; Generate sitemap.org automagically... :sitemap-filename "sitemap.org" ; ... call it sitemap.org (it's the default)... :sitemap-title "Sitemap" ; ... with title 'Sitemap'. :sitemap-style 'tree :sitemap-sort-folders 'last :style "<base href=\"/v7g/\" target=\"_top\" /> <link rel=\"stylesheet\" type=\"text/css\" href=\"/v7g/inc/v7.css\" media=\"screen\" /> <link rel=\"stylesheet\" type=\"text/css\" href=\"/v7g/inc/cols.css\" /> <script type=\"text/javascript\" src=\"/v7g/inc/css3-multi-column.js\"></script>" :style-include-default nil :exclude "sitemap.org" :html-preamble "<!--#include virtual=\"/v7g/inc/head.inc\" --> <h1>%t</h1>" :html-postamble "</div> <!--#include virtual=\"/v7g/inc/foot1.inc\" --> <!--#include virtual=\"/v7g/inc/sitemap.shtml\" --> <!--#include virtual=\"/v7g/inc/foot2.inc\" --> %c <!--#include virtual=\"/v7g/inc/foot3.inc\" --> <div>" :html-extension "shtml" ) ("org-static" :base-directory "~/tmp/org-html-export/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|inc\\|" :publishing-directory "/srv/http/v7g" :recursive t :publishing-function org-publish-attachment ) ("org" :components ("org-notes" "org-static" "org-sitemap")) ("org-sitemap" :base-directory "~/tmp/org-html-export/" :base-extension "org" :publishing-directory "/srv/http/v7g/inc" :publishing-function org-publish-org-to-html :body-only t :html-extension "shtml" ) )) === -- Sean Whitton / <s...@silentflame.com> OpenPGP KeyID: 0x3B6D411B http://seanwhitton.com/
pgppUly5jRDIF.pgp
Description: PGP signature