all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Get html links relative to base directory for Jekyll site
@ 2014-11-22  5:29 Brady Trainor
  0 siblings, 0 replies; only message in thread
From: Brady Trainor @ 2014-11-22  5:29 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-22  5:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-22  5:29 Get html links relative to base directory for Jekyll site Brady Trainor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.