The way to do this is to register a new kind of link in org-mode using org-add-link-type. This allows you to customize your export format.
org-add-link-typeprefix is required, "what happens when you click a link?" export functions and functions.
img, [[img:logo.png][Logo]].
../images/ ( .org), - /images/. , .emacs :
(defun org-custom-link-img-follow (path)
(org-open-file-with-emacs
(format "../images/%s" path)))
(defun org-custom-link-img-export (path desc format)
(cond
((eq format 'html)
(format "<img src=\"/images/%s\" alt=\"%s\"/>" path desc))))
(org-add-link-type "img" 'org-custom-link-img-follow 'org-custom-link-img-export)
, , , . , C-h f org-add-link-type .
, , , (, [[post:otherfile.org][Other File]]). Jekyll, double-% s.
(defun org-custom-link-post-follow (path)
(org-open-file-with-emacs path))
(defun org-custom-link-post-export (path desc format)
(cond
((eq format 'html)
(format "<a href=\"{%% post_url %s %%}\">%s</a>" path desc))))
(org-add-link-type "post" 'org-custom-link-post-follow 'org-custom-link-post-export)