Kaushal Modi <kaushal.m...@gmail.com> 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,

Reply via email to