~jakob/ox-haunt

123ea1544d4d01724d82b1139dc67a62c733000c — Jakob L. Kreuze 5 years ago 699f438
Rename vestigial ':hugo-base-dir
1 files changed, 3 insertions(+), 3 deletions(-)

M ox-haunt.el
M ox-haunt.el => ox-haunt.el +3 -3
@@ 45,7 45,7 @@
    (src-block . ox-haunt-src-block)
    (template . ox-haunt-template))
  :options-alist
  '((:hugo-base-dir "HAUNT_BASE_DIR" nil nil)))
  '((:haunt-base-dir "HAUNT_BASE_DIR" nil nil)))

(defgroup org-export-haunt nil
  "Options for exporting Org mode files to Haunt HTML."


@@ 121,7 121,7 @@ valid executable."
  "Transcode a LINK object from Org to HTML."
  (let* ((orig-path (org-element-property :path link))
         (filename (file-name-nondirectory orig-path))
         (dest-path (plist-get info :hugo-base-dir)))
         (dest-path (plist-get info :haunt-base-dir)))
    (when (string= "file" (org-element-property :type link))
      (ox-haunt--check-base-dir dest-path)
      (copy-file orig-path (concat dest-path "/images/" filename) t)


@@ 183,7 183,7 @@ valid executable."
                 'hugo subtreep visible-only)
                (org-export--get-buffer-attributes)
                (org-export-get-environment 'haunt subtreep)))
         (dest-path (plist-get info :hugo-base-dir)))
         (dest-path (plist-get info :haunt-base-dir)))
    (ox-haunt--check-base-dir dest-path)
    (let* ((extension (concat "." (or (plist-get ext-plist :html-extension)
                                      org-html-extension