From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: why prepend "file://" to abs paths in html output? Date: Thu, 13 Jul 2017 14:46:05 +0200 Message-ID: <87a848fqsy.fsf@nicolasgoaziou.fr> References: <87lgnz43qk.fsf@nicolasgoaziou.fr> <87h8yn3tsa.fsf@nicolasgoaziou.fr> <87bmou4u8a.fsf@nicolasgoaziou.fr> <874lumfqk7.fsf@gmail.com> <877ezh51ns.fsf@nicolasgoaziou.fr> <86y3rw2y1y.fsf@hierocles.phy.bnl.gov> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVdVR-00032E-0E for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:46:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVdVQ-000750-6V for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:46:09 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:45053) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVdVP-00074r-WB for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:46:08 -0400 In-Reply-To: <86y3rw2y1y.fsf@hierocles.phy.bnl.gov> (Brett Viren's message of "Mon, 10 Jul 2017 09:58:49 -0400") 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" To: Brett Viren Cc: Tim Cross , Carsten Dominik , Org Mode , Kaushal Modi Hello, Brett Viren writes: > Nikola source wants this layout: > > /path/to/my/nikola/posts/my-blog-post.org > /path/to/my/nikola/images/unicorn.jpg > > The Org source generates to HTML which will be found at this URL path: > > /mysiteroot/posts/my-blog-post/index.html > > So, right now, either the Org link to the image must be written to be > invalid (for Org): > > [[../../images/unicorn.jpg]] Your examples do not apply here, as we are talking about absolute file names. Relative links are exported as relative URL, which is good in most cases. The remaining cases can be dealt with filters or some such or by back-end themselves. Regards, -- Nicolas Goaziou