correct erroneous "/static" in image paths

the final root-relative path of images exported to hugo has no "/static" at the
beginning. This patch fixes my initial error.
master
Matt Price 9 years ago
parent 67ec7988b4
commit 39290c68ef
  1. 2
      ox-hugo.el

@ -391,7 +391,7 @@ INFO is a plist used as a communication channel."
(progn
(unless (file-exists-p exported-image)
(copy-file full-path exported-image))
(concat "/static/" (file-name-as-directory (plist-get info :hugo-static-images)) file-name))
(concat "/" (file-name-as-directory (plist-get info :hugo-static-images)) file-name))
path)))

Loading…
Cancel
Save