[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] why prepend "file://" to abs paths in html output?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] why prepend "file://" to abs paths in html output? |
Date: |
Thu, 13 Jul 2017 15:14:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Kaushal Modi <address@hidden> 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,
- Re: [O] why prepend "file://" to abs paths in html output?, (continued)
- Re: [O] why prepend "file://" to abs paths in html output?, Brett Viren, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/10
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Kaushal Modi, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?,
Nicolas Goaziou <=
- Re: [O] why prepend "file://" to abs paths in html output?, Nicolas Goaziou, 2017/07/13
- Re: [O] why prepend "file://" to abs paths in html output?, Tim Cross, 2017/07/10