From: Brady Trainor <algebrat@uw.edu>
To: emacs-orgmode@gnu.org
Subject: Get html links relative to base directory for Jekyll site
Date: Fri, 21 Nov 2014 21:29:16 -0800 [thread overview]
Message-ID: <8761e7ajmb.fsf@uw.edu> (raw)
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 other threads:[~2014-11-22 5:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8761e7ajmb.fsf@uw.edu \
--to=algebrat@uw.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).