Can I get org publishing to change paths of links? Jekyll system seems to work 
better if image links start from base. 

I want

#+BEGIN_SRC org
file:../img/jekyll.png
#+END_SRC

(or something similar, "../img/" could be "img/" or "./img/")

to become

#+BEGIN_HTML
<img src="/img/jekyll.png" alt="jekyll.png" />
#+END_HTML

in the published HTML file. 

That is, the address should start "/img/".

Or perhaps another solution, a function which makes org contents

#+BEGIN_SRC org
file:../img/jekyll.png
#+END_SRC

become

#+BEGIN_SRC org
file:../img/jekyll.png

,#+BEGIN_HTML
<img src="/img/jekyll.png" alt="jekyll.png" />
,#+END_HTML
#+END_SRC

In other words, can I get the HTML link as a result in the org buffer. Simply 
adding a "/" here would be simple. Or somethink like cd-latex for html links?

Or does anyone have another solution for including links in a Jekyll site? I 
really like to have the inline org file: link as then I can use inline images 
while I'm drafting. 

--
Brady


Reply via email to