From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Get html links relative to base directory for Jekyll site Date: Fri, 21 Nov 2014 21:29:16 -0800 Message-ID: <8761e7ajmb.fsf@uw.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs3GS-0005cG-Vd for emacs-orgmode@gnu.org; Sat, 22 Nov 2014 00:29:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xs3GL-000178-Gk for emacs-orgmode@gnu.org; Sat, 22 Nov 2014 00:29:44 -0500 Received: from plane.gmane.org ([80.91.229.3]:56218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xs3GL-000172-A2 for emacs-orgmode@gnu.org; Sat, 22 Nov 2014 00:29:37 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xs3GJ-00080B-T2 for emacs-orgmode@gnu.org; Sat, 22 Nov 2014 06:29:36 +0100 Received: from 75-165-58-174.tukw.qwest.net ([75.165.58.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Nov 2014 06:29:35 +0100 Received: from algebrat by 75-165-58-174.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Nov 2014 06:29:35 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 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 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