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 15:14:39 +0200 Message-ID: <87wp7ceaww.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> <87eftkfr3n.fsf@nicolasgoaziou.fr> <871spkfqe1.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVdxV-0003ZQ-Cu for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 09:15:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVdxP-0001dB-Py for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 09:15:09 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:53161) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVdxP-0001c5-K4 for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 09:15:03 -0400 In-Reply-To: (Kaushal Modi's message of "Thu, 13 Jul 2017 13:01:11 +0000") 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: Kaushal Modi Cc: Brett Viren , Carsten Dominik , Org Mode , Tim Cross Kaushal Modi writes: > I meant "Would it be OK to have ox-hugo.el define a link abbreviation like > `hugo-static:' for the user?" That way, each user of ox-hugo.el does not > have to do that in their configs. Anything goes, but I'm quite certain there's a better way. > For static site generators like Hugo, Nikola, etc. it is conventional to > dump all "static" attachments like images, code files, etc in a fixed > "static/" (or something like that) in the blog structure. Then you could implement a function that detects static attachments (e.g., per extension, or using a user-provided function), intercepts links to such files, and rewrites them to the fixed "static/" directory. Regards,