[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Inline images export to HTML generates < and > rather than < a
From: |
Sean Whitton |
Subject: |
[O] Inline images export to HTML generates < and > rather than < and > |
Date: |
Sun, 27 Mar 2011 14:49:16 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
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 / <address@hidden>
OpenPGP KeyID: 0x3B6D411B
http://seanwhitton.com/
pgpMcMHUSESnX.pgp
Description: PGP signature
- [O] Inline images export to HTML generates < and > rather than < and >,
Sean Whitton <=