[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Get html links relative to base directory for Jekyll site
From: |
Brady Trainor |
Subject: |
[O] Get html links relative to base directory for Jekyll site |
Date: |
Fri, 21 Nov 2014 21:29:16 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Get html links relative to base directory for Jekyll site,
Brady Trainor <=