kaushalmodi / ox-hugo

A carefully crafted Org exporter back-end for Hugo
https://ox-hugo.scripter.co
GNU General Public License v3.0
882 stars 132 forks source link

"org-export-get-all-transcoders: Wrong type argument: org-export-backend, nil" when export to Hugo-compatible Markdown Subtree or File to Md file #436

Closed wowhxj closed 3 years ago

wowhxj commented 3 years ago

Actual Behavior

Thanks very much for the great package.

When I tried to export a org subtree to hugo-markdown file via C-c C-e H H, it prompt "org-export-get-all-transcoders: Wrong type argument: org-export-backend, nil" and FAILED.

I also tried to use C-c C-e H h to export file to markdown and it SUCCEEDED.

Expected Behavior

It should succeed exporting a org subtree to /content/posts/xxx.md file.

How to Reproduce the Issue

With the following example org file and config.

My ox-hugo config:

(use-package ox-hugo
  :ensure t            ; Auto-install the package from Melpa (optional)
  :after ox
  :config
  (with-eval-after-load 'org-capture
    (defun org-hugo-new-subtree-post-capture-template ()
      "Returns `org-capture' template string for new Hugo post.
See `org-capture-templates' for more information."
      (let* ((title (read-from-minibuffer "Post Title: ")) ; Prompt to enter the post title
             (fname (org-hugo-slug title)))
        (mapconcat #'identity
                   `(
                     ,(concat "* TODO " title)
                     ":PROPERTIES:"
                     ,(concat ":EXPORT_FILE_NAME: " fname)
                     ":END:"
                     "%?\n")          ; Place the cursor here finally
                   "\n")))

    (add-to-list 'org-capture-templates
                 '("h"                ; `org-capture' binding + h
                   "Hugo post"
                   entry
                   ;; It is assumed that below file is present in `org-directory'
                   ;; and that it has a "Blog Ideas" heading. It can even be a
                   ;; symlink pointing to the actual location of all-posts.org!
                   (file+olp "all-posts.org" "Blog Ideas")
                   (function org-hugo-new-subtree-post-capture-template))))
  )

Example Org File

#+hugo_base_dir: /Users/randolph/iCloud/Blog

* Blog Ideas
** TODO my first blog
:PROPERTIES:
:EXPORT_FILE_NAME: my-first-blog
:END:
this is the first one.

Emacs lisp debug backtrace

Debugger entered--Lisp error: (wrong-type-argument org-export-backend nil)
  signal(wrong-type-argument (org-export-backend nil))
  org-export-get-all-transcoders(#s(org-export-backend :name nil :parent ascii :transcoders ((bold . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (code . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (italic . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (strike-through . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (underline . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (verbatim . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>))) :options nil :filters nil :blocks nil :menu nil))
  org-export-data-with-backend((#("my first blog" 0 13 (:parent #1))) #s(org-export-backend :name nil :parent ascii :transcoders ((bold . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (code . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (italic . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (strike-through . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (underline . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>)) (verbatim . #f(compiled-function (object contents _) #<bytecode 0x1fe0ac2f4c65>))) :options nil :filters nil :blocks nil :menu nil) (:export-options (subtree) :back-end #s(org-export-backend :name hugo :parent blackfriday :transcoders ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block)) :options ((:with-toc nil "toc" org-hugo-export-with-toc) (:section-numbers nil "num" org-hugo-export-with-section-numbers) (:author "AUTHOR" nil user-full-name newline) (:creator "CREATOR" nil org-hugo-export-creator-string) (:with-smart-quotes nil "'" nil) (:with-special-strings nil "-" nil) (:with-sub-superscript nil "^" ...) (:hugo-with-locale "HUGO_WITH_LOCALE" nil nil) (:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil org-hugo-front-matter-format) (:hugo-level-offset "HUGO_LEVEL_OFFSET" nil "1") (:hugo-preserve-filling "HUGO_PRESERVE_FILLING" nil org-hugo-preserve-filling) (:hugo-delete-trailing-ws "HUGO_DELETE_TRAILING_WS" nil org-hugo-delete-trailing-ws) (:hugo-section "HUGO_SECTION" nil org-hugo-section) (:hugo-bundle "HUGO_BUNDLE" nil nil) (:hugo-base-dir "HUGO_BASE_DIR" nil nil) (:hugo-code-fence "HUGO_CODE_FENCE" nil t) (:hugo-use-code-for-kbd "HUGO_USE_CODE_FOR_KBD" nil org-hugo-use-code-for-kbd) (:hugo-prefer-hyphen-in-tags "HUGO_PREFER_HYPHEN_IN_TAGS" nil org-hugo-prefer-hyphen-in-tags) (:hugo-allow-spaces-in-tags "HUGO_ALLOW_SPACES_IN_TAGS" nil org-hugo-allow-spaces-in-tags) (:hugo-auto-set-lastmod "HUGO_AUTO_SET_LASTMOD" nil org-hugo-auto-set-lastmod) (:hugo-custom-front-matter "HUGO_CUSTOM_FRONT_MATTER" nil nil space) (:hugo-blackfriday "HUGO_BLACKFRIDAY" nil nil space) (:hugo-front-matter-key-replace "HUGO_FRONT_MATTER_KEY_REPLACE" nil nil space) (:hugo-date-format "HUGO_DATE_FORMAT" nil org-hugo-date-format) (:hugo-paired-shortcodes "HUGO_PAIRED_SHORTCODES" nil org-hugo-paired-shortcodes space) (:hugo-pandoc-citations "HUGO_PANDOC_CITATIONS" nil nil) (:bibliography "BIBLIOGRAPHY" nil nil newline) (:hugo-aliases "HUGO_ALIASES" nil nil space) (:hugo-audio "HUGO_AUDIO" nil nil) (:date "DATE" nil nil) (:description "DESCRIPTION" nil nil) (:hugo-draft "HUGO_DRAFT" nil nil) ...) :filters ((:filter-body . org-hugo-body-filter)) :blocks nil :menu (72 "Export to Hugo-compatible Markdo..." (... ... ... ... ... ...))) :translate-alist ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block) (center-block . org-blackfriday-center-block) (example-block . org-blackfriday-example-block) (fixed-width . org-blackfriday-fixed-width) (footnote-reference . org-blackfriday-footnote-reference) (inner-template . org-blackfriday-inner-template) (italic . org-blackfriday-italic) (item . org-blackfriday-item) (latex-environment . org-blackfriday-latex-environment) (latex-fragment . org-blackfriday-latex-fragment) (line-break . org-html-line-break) (plain-list . org-blackfriday-plain-list) (plain-text . org-blackfriday-plain-text) (quote-block . org-blackfriday-quote-block) (special-block . org-blackfriday-special-block) (src-block . org-blackfriday-src-block) (strike-through . org-blackfriday-strike-through) (table-cell . org-blackfriday-table-cell) (table-row . org-blackfriday-table-row) (table . org-blackfriday-table) (verse-block . org-blackfriday-verse-block) (bold . org-md-bold) ...) :exported-data #<hash-table eq 5/4001 0x1fe0ac284b51> :input-buffer "*Ox-hugo Pre-processed all-posts..." :input-file "/Users/randolph/org/all-posts.or..." :with-toc nil :section-numbers nil :author "Randolph Huang" :creator "Emacs 27.1 (Org mode 9.4.4 + ox-..." :with-smart-quotes nil :with-special-strings nil :with-sub-superscript {} :hugo-with-locale nil :hugo-front-matter-format "toml" :hugo-level-offset "1" ...))
  org-hugo--get-sanitized-title((:export-options (subtree) :back-end #s(org-export-backend :name hugo :parent blackfriday :transcoders ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block)) :options ((:with-toc nil "toc" org-hugo-export-with-toc) (:section-numbers nil "num" org-hugo-export-with-section-numbers) (:author "AUTHOR" nil user-full-name newline) (:creator "CREATOR" nil org-hugo-export-creator-string) (:with-smart-quotes nil "'" nil) (:with-special-strings nil "-" nil) (:with-sub-superscript nil "^" '{}) (:hugo-with-locale "HUGO_WITH_LOCALE" nil nil) (:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil org-hugo-front-matter-format) (:hugo-level-offset "HUGO_LEVEL_OFFSET" nil "1") (:hugo-preserve-filling "HUGO_PRESERVE_FILLING" nil org-hugo-preserve-filling) (:hugo-delete-trailing-ws "HUGO_DELETE_TRAILING_WS" nil org-hugo-delete-trailing-ws) (:hugo-section "HUGO_SECTION" nil org-hugo-section) (:hugo-bundle "HUGO_BUNDLE" nil nil) (:hugo-base-dir "HUGO_BASE_DIR" nil nil) (:hugo-code-fence "HUGO_CODE_FENCE" nil t) (:hugo-use-code-for-kbd "HUGO_USE_CODE_FOR_KBD" nil org-hugo-use-code-for-kbd) (:hugo-prefer-hyphen-in-tags "HUGO_PREFER_HYPHEN_IN_TAGS" nil org-hugo-prefer-hyphen-in-tags) (:hugo-allow-spaces-in-tags "HUGO_ALLOW_SPACES_IN_TAGS" nil org-hugo-allow-spaces-in-tags) (:hugo-auto-set-lastmod "HUGO_AUTO_SET_LASTMOD" nil org-hugo-auto-set-lastmod) (:hugo-custom-front-matter "HUGO_CUSTOM_FRONT_MATTER" nil nil space) (:hugo-blackfriday "HUGO_BLACKFRIDAY" nil nil space) (:hugo-front-matter-key-replace "HUGO_FRONT_MATTER_KEY_REPLACE" nil nil space) (:hugo-date-format "HUGO_DATE_FORMAT" nil org-hugo-date-format) (:hugo-paired-shortcodes "HUGO_PAIRED_SHORTCODES" nil org-hugo-paired-shortcodes space) (:hugo-pandoc-citations "HUGO_PANDOC_CITATIONS" nil nil) (:bibliography "BIBLIOGRAPHY" nil nil newline) (:hugo-aliases "HUGO_ALIASES" nil nil space) (:hugo-audio "HUGO_AUDIO" nil nil) (:date "DATE" nil nil) (:description "DESCRIPTION" nil nil) (:hugo-draft "HUGO_DRAFT" nil nil) (:hugo-expirydate "HUGO_EXPIRYDATE" nil nil) (:hugo-headless "HUGO_HEADLESS" nil nil) (:hugo-images "HUGO_IMAGES" nil nil newline) (:hugo-iscjklanguage "HUGO_ISCJKLANGUAGE" nil nil) (:keywords "KEYWORDS" nil nil newline) (:hugo-layout "HUGO_LAYOUT" nil nil) ...) :filters ((:filter-body . org-hugo-body-filter)) :blocks nil :menu (72 "Export to Hugo-compatible Markdown" ((72 "Subtree or File to Md file            " ...) (104 "File to Md file" ...) (79 "Subtree or File to Md file and open   " ...) (111 "File to Md file and open" ...) (65 "All subtrees (or File) to Md file(s)  " ...) (116 "File to a temporary Md buffer" ...)))) :translate-alist ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block) (center-block . org-blackfriday-center-block) (example-block . org-blackfriday-example-block) (fixed-width . org-blackfriday-fixed-width) (footnote-reference . org-blackfriday-footnote-reference) (inner-template . org-blackfriday-inner-template) (italic . org-blackfriday-italic) (item . org-blackfriday-item) (latex-environment . org-blackfriday-latex-environment) (latex-fragment . org-blackfriday-latex-fragment) (line-break . org-html-line-break) (plain-list . org-blackfriday-plain-list) (plain-text . org-blackfriday-plain-text) (quote-block . org-blackfriday-quote-block) (special-block . org-blackfriday-special-block) (src-block . org-blackfriday-src-block) (strike-through . org-blackfriday-strike-through) (table-cell . org-blackfriday-table-cell) (table-row . org-blackfriday-table-row) (table . org-blackfriday-table) (verse-block . org-blackfriday-verse-block) (bold . org-md-bold) (center-block . org-md--convert-to-html) (code . org-md-verbatim) (drawer . org-md--identity) (dynamic-block . org-md--identity) (example-block . org-md-example-block) (export-block . org-md-export-block) ...) :exported-data #<hash-table eq 5/4001 0x1fe0ac284b51> :input-buffer "*Ox-hugo Pre-processed all-posts.org *..." :input-file "/Users/randolph/org/all-posts.org" :with-toc nil :section-numbers nil :author "Randolph Huang" :creator "Emacs 27.1 (Org mode 9.4.4 + ox-hugo)" :with-smart-quotes nil :with-special-strings nil :with-sub-superscript {} :hugo-with-locale nil :hugo-front-matter-format "toml" :hugo-level-offset "1" :hugo-preserve-filling t :hugo-delete-trailing-ws t :hugo-section "posts" ...))
  org-hugo--get-front-matter((:export-options (subtree) :back-end #s(org-export-backend :name hugo :parent blackfriday :transcoders ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block)) :options ((:with-toc nil "toc" org-hugo-export-with-toc) (:section-numbers nil "num" org-hugo-export-with-section-numbers) (:author "AUTHOR" nil user-full-name newline) (:creator "CREATOR" nil org-hugo-export-creator-string) (:with-smart-quotes nil "'" nil) (:with-special-strings nil "-" nil) (:with-sub-superscript nil "^" '{}) (:hugo-with-locale "HUGO_WITH_LOCALE" nil nil) (:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil org-hugo-front-matter-format) (:hugo-level-offset "HUGO_LEVEL_OFFSET" nil "1") (:hugo-preserve-filling "HUGO_PRESERVE_FILLING" nil org-hugo-preserve-filling) (:hugo-delete-trailing-ws "HUGO_DELETE_TRAILING_WS" nil org-hugo-delete-trailing-ws) (:hugo-section "HUGO_SECTION" nil org-hugo-section) (:hugo-bundle "HUGO_BUNDLE" nil nil) (:hugo-base-dir "HUGO_BASE_DIR" nil nil) (:hugo-code-fence "HUGO_CODE_FENCE" nil t) (:hugo-use-code-for-kbd "HUGO_USE_CODE_FOR_KBD" nil org-hugo-use-code-for-kbd) (:hugo-prefer-hyphen-in-tags "HUGO_PREFER_HYPHEN_IN_TAGS" nil org-hugo-prefer-hyphen-in-tags) (:hugo-allow-spaces-in-tags "HUGO_ALLOW_SPACES_IN_TAGS" nil org-hugo-allow-spaces-in-tags) (:hugo-auto-set-lastmod "HUGO_AUTO_SET_LASTMOD" nil org-hugo-auto-set-lastmod) (:hugo-custom-front-matter "HUGO_CUSTOM_FRONT_MATTER" nil nil space) (:hugo-blackfriday "HUGO_BLACKFRIDAY" nil nil space) (:hugo-front-matter-key-replace "HUGO_FRONT_MATTER_KEY_REPLACE" nil nil space) (:hugo-date-format "HUGO_DATE_FORMAT" nil org-hugo-date-format) (:hugo-paired-shortcodes "HUGO_PAIRED_SHORTCODES" nil org-hugo-paired-shortcodes space) (:hugo-pandoc-citations "HUGO_PANDOC_CITATIONS" nil nil) (:bibliography "BIBLIOGRAPHY" nil nil newline) (:hugo-aliases "HUGO_ALIASES" nil nil space) (:hugo-audio "HUGO_AUDIO" nil nil) (:date "DATE" nil nil) (:description "DESCRIPTION" nil nil) (:hugo-draft "HUGO_DRAFT" nil nil) (:hugo-expirydate "HUGO_EXPIRYDATE" nil nil) (:hugo-headless "HUGO_HEADLESS" nil nil) (:hugo-images "HUGO_IMAGES" nil nil newline) (:hugo-iscjklanguage "HUGO_ISCJKLANGUAGE" nil nil) (:keywords "KEYWORDS" nil nil newline) (:hugo-layout "HUGO_LAYOUT" nil nil) ...) :filters ((:filter-body . org-hugo-body-filter)) :blocks nil :menu (72 "Export to Hugo-compatible Markdown" ((72 "Subtree or File to Md file            " ...) (104 "File to Md file" ...) (79 "Subtree or File to Md file and open   " ...) (111 "File to Md file and open" ...) (65 "All subtrees (or File) to Md file(s)  " ...) (116 "File to a temporary Md buffer" ...)))) :translate-alist ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block) (center-block . org-blackfriday-center-block) (example-block . org-blackfriday-example-block) (fixed-width . org-blackfriday-fixed-width) (footnote-reference . org-blackfriday-footnote-reference) (inner-template . org-blackfriday-inner-template) (italic . org-blackfriday-italic) (item . org-blackfriday-item) (latex-environment . org-blackfriday-latex-environment) (latex-fragment . org-blackfriday-latex-fragment) (line-break . org-html-line-break) (plain-list . org-blackfriday-plain-list) (plain-text . org-blackfriday-plain-text) (quote-block . org-blackfriday-quote-block) (special-block . org-blackfriday-special-block) (src-block . org-blackfriday-src-block) (strike-through . org-blackfriday-strike-through) (table-cell . org-blackfriday-table-cell) (table-row . org-blackfriday-table-row) (table . org-blackfriday-table) (verse-block . org-blackfriday-verse-block) (bold . org-md-bold) (center-block . org-md--convert-to-html) (code . org-md-verbatim) (drawer . org-md--identity) (dynamic-block . org-md--identity) (example-block . org-md-example-block) (export-block . org-md-export-block) ...) :exported-data #<hash-table eq 5/4001 0x1fe0ac284b51> :input-buffer "*Ox-hugo Pre-processed all-posts.org *..." :input-file "/Users/randolph/org/all-posts.org" :with-toc nil :section-numbers nil :author "Randolph Huang" :creator "Emacs 27.1 (Org mode 9.4.4 + ox-hugo)" :with-smart-quotes nil :with-special-strings nil :with-sub-superscript {} :hugo-with-locale nil :hugo-front-matter-format "toml" :hugo-level-offset "1" :hugo-preserve-filling t :hugo-delete-trailing-ws t :hugo-section "posts" ...))
  org-hugo-body-filter(#("this is the first one." 0 22 (:parent (paragraph (:begin 134 :end 157 :contents-begin 134 :contents-end 157 :post-blank 1 :post-affiliated 134 :parent ...) #("this is the first one.\n" 0 23 ...)))) hugo (:export-options (subtree) :back-end #s(org-export-backend :name hugo :parent blackfriday :transcoders ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block)) :options ((:with-toc nil "toc" org-hugo-export-with-toc) (:section-numbers nil "num" org-hugo-export-with-section-numbers) (:author "AUTHOR" nil user-full-name newline) (:creator "CREATOR" nil org-hugo-export-creator-string) (:with-smart-quotes nil "'" nil) (:with-special-strings nil "-" nil) (:with-sub-superscript nil "^" ...) (:hugo-with-locale "HUGO_WITH_LOCALE" nil nil) (:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil org-hugo-front-matter-format) (:hugo-level-offset "HUGO_LEVEL_OFFSET" nil "1") (:hugo-preserve-filling "HUGO_PRESERVE_FILLING" nil org-hugo-preserve-filling) (:hugo-delete-trailing-ws "HUGO_DELETE_TRAILING_WS" nil org-hugo-delete-trailing-ws) (:hugo-section "HUGO_SECTION" nil org-hugo-section) (:hugo-bundle "HUGO_BUNDLE" nil nil) (:hugo-base-dir "HUGO_BASE_DIR" nil nil) (:hugo-code-fence "HUGO_CODE_FENCE" nil t) (:hugo-use-code-for-kbd "HUGO_USE_CODE_FOR_KBD" nil org-hugo-use-code-for-kbd) (:hugo-prefer-hyphen-in-tags "HUGO_PREFER_HYPHEN_IN_TAGS" nil org-hugo-prefer-hyphen-in-tags) (:hugo-allow-spaces-in-tags "HUGO_ALLOW_SPACES_IN_TAGS" nil org-hugo-allow-spaces-in-tags) (:hugo-auto-set-lastmod "HUGO_AUTO_SET_LASTMOD" nil org-hugo-auto-set-lastmod) (:hugo-custom-front-matter "HUGO_CUSTOM_FRONT_MATTER" nil nil space) (:hugo-blackfriday "HUGO_BLACKFRIDAY" nil nil space) (:hugo-front-matter-key-replace "HUGO_FRONT_MATTER_KEY_REPLACE" nil nil space) (:hugo-date-format "HUGO_DATE_FORMAT" nil org-hugo-date-format) (:hugo-paired-shortcodes "HUGO_PAIRED_SHORTCODES" nil org-hugo-paired-shortcodes space) (:hugo-pandoc-citations "HUGO_PANDOC_CITATIONS" nil nil) (:bibliography "BIBLIOGRAPHY" nil nil newline) (:hugo-aliases "HUGO_ALIASES" nil nil space) (:hugo-audio "HUGO_AUDIO" nil nil) (:date "DATE" nil nil) (:description "DESCRIPTION" nil nil) (:hugo-draft "HUGO_DRAFT" nil nil) ...) :filters ((:filter-body . org-hugo-body-filter)) :blocks nil :menu (72 "Export to Hugo-compatible Markdo..." (... ... ... ... ... ...))) :translate-alist ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block) (center-block . org-blackfriday-center-block) (example-block . org-blackfriday-example-block) (fixed-width . org-blackfriday-fixed-width) (footnote-reference . org-blackfriday-footnote-reference) (inner-template . org-blackfriday-inner-template) (italic . org-blackfriday-italic) (item . org-blackfriday-item) (latex-environment . org-blackfriday-latex-environment) (latex-fragment . org-blackfriday-latex-fragment) (line-break . org-html-line-break) (plain-list . org-blackfriday-plain-list) (plain-text . org-blackfriday-plain-text) (quote-block . org-blackfriday-quote-block) (special-block . org-blackfriday-special-block) (src-block . org-blackfriday-src-block) (strike-through . org-blackfriday-strike-through) (table-cell . org-blackfriday-table-cell) (table-row . org-blackfriday-table-row) (table . org-blackfriday-table) (verse-block . org-blackfriday-verse-block) (bold . org-md-bold) ...) :exported-data #<hash-table eq 5/4001 0x1fe0ac284b51> :input-buffer "*Ox-hugo Pre-processed all-posts..." :input-file "/Users/randolph/org/all-posts.or..." :with-toc nil :section-numbers nil :author "Randolph Huang" :creator "Emacs 27.1 (Org mode 9.4.4 + ox-..." :with-smart-quotes nil :with-special-strings nil :with-sub-superscript {} :hugo-with-locale nil :hugo-front-matter-format "toml" :hugo-level-offset "1" ...))
  org-export-filter-apply-functions((org-hugo-body-filter) #("this is the first one." 0 22 (:parent (paragraph (:begin 134 :end 157 :contents-begin 134 :contents-end 157 :post-blank 1 :post-affiliated 134 :parent ...) #("this is the first one.\n" 0 23 ...)))) (:export-options (subtree) :back-end #s(org-export-backend :name hugo :parent blackfriday :transcoders ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block)) :options ((:with-toc nil "toc" org-hugo-export-with-toc) (:section-numbers nil "num" org-hugo-export-with-section-numbers) (:author "AUTHOR" nil user-full-name newline) (:creator "CREATOR" nil org-hugo-export-creator-string) (:with-smart-quotes nil "'" nil) (:with-special-strings nil "-" nil) (:with-sub-superscript nil "^" ...) (:hugo-with-locale "HUGO_WITH_LOCALE" nil nil) (:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil org-hugo-front-matter-format) (:hugo-level-offset "HUGO_LEVEL_OFFSET" nil "1") (:hugo-preserve-filling "HUGO_PRESERVE_FILLING" nil org-hugo-preserve-filling) (:hugo-delete-trailing-ws "HUGO_DELETE_TRAILING_WS" nil org-hugo-delete-trailing-ws) (:hugo-section "HUGO_SECTION" nil org-hugo-section) (:hugo-bundle "HUGO_BUNDLE" nil nil) (:hugo-base-dir "HUGO_BASE_DIR" nil nil) (:hugo-code-fence "HUGO_CODE_FENCE" nil t) (:hugo-use-code-for-kbd "HUGO_USE_CODE_FOR_KBD" nil org-hugo-use-code-for-kbd) (:hugo-prefer-hyphen-in-tags "HUGO_PREFER_HYPHEN_IN_TAGS" nil org-hugo-prefer-hyphen-in-tags) (:hugo-allow-spaces-in-tags "HUGO_ALLOW_SPACES_IN_TAGS" nil org-hugo-allow-spaces-in-tags) (:hugo-auto-set-lastmod "HUGO_AUTO_SET_LASTMOD" nil org-hugo-auto-set-lastmod) (:hugo-custom-front-matter "HUGO_CUSTOM_FRONT_MATTER" nil nil space) (:hugo-blackfriday "HUGO_BLACKFRIDAY" nil nil space) (:hugo-front-matter-key-replace "HUGO_FRONT_MATTER_KEY_REPLACE" nil nil space) (:hugo-date-format "HUGO_DATE_FORMAT" nil org-hugo-date-format) (:hugo-paired-shortcodes "HUGO_PAIRED_SHORTCODES" nil org-hugo-paired-shortcodes space) (:hugo-pandoc-citations "HUGO_PANDOC_CITATIONS" nil nil) (:bibliography "BIBLIOGRAPHY" nil nil newline) (:hugo-aliases "HUGO_ALIASES" nil nil space) (:hugo-audio "HUGO_AUDIO" nil nil) (:date "DATE" nil nil) (:description "DESCRIPTION" nil nil) (:hugo-draft "HUGO_DRAFT" nil nil) ...) :filters ((:filter-body . org-hugo-body-filter)) :blocks nil :menu (72 "Export to Hugo-compatible Markdo..." (... ... ... ... ... ...))) :translate-alist ((code . org-hugo-kbd-tags-maybe) (example-block . org-hugo-example-block) (export-block . org-hugo-export-block) (export-snippet . org-hugo-export-snippet) (headline . org-hugo-headline) (inner-template . org-hugo-inner-template) (keyword . org-hugo-keyword) (link . org-hugo-link) (paragraph . org-hugo-paragraph) (src-block . org-hugo-src-block) (special-block . org-hugo-special-block) (center-block . org-blackfriday-center-block) (example-block . org-blackfriday-example-block) (fixed-width . org-blackfriday-fixed-width) (footnote-reference . org-blackfriday-footnote-reference) (inner-template . org-blackfriday-inner-template) (italic . org-blackfriday-italic) (item . org-blackfriday-item) (latex-environment . org-blackfriday-latex-environment) (latex-fragment . org-blackfriday-latex-fragment) (line-break . org-html-line-break) (plain-list . org-blackfriday-plain-list) (plain-text . org-blackfriday-plain-text) (quote-block . org-blackfriday-quote-block) (special-block . org-blackfriday-special-block) (src-block . org-blackfriday-src-block) (strike-through . org-blackfriday-strike-through) (table-cell . org-blackfriday-table-cell) (table-row . org-blackfriday-table-row) (table . org-blackfriday-table) (verse-block . org-blackfriday-verse-block) (bold . org-md-bold) ...) :exported-data #<hash-table eq 5/4001 0x1fe0ac284b51> :input-buffer "*Ox-hugo Pre-processed all-posts..." :input-file "/Users/randolph/org/all-posts.or..." :with-toc nil :section-numbers nil :author "Randolph Huang" :creator "Emacs 27.1 (Org mode 9.4.4 + ox-..." :with-smart-quotes nil :with-special-strings nil :with-sub-superscript {} :hugo-with-locale nil :hugo-front-matter-format "toml" :hugo-level-offset "1" ...))
  org-export-as(hugo :subtreep nil nil (:output-file "/Users/randolph/Library/Mobile Documents/com~apple..."))
  org-export-to-file(hugo "/Users/randolph/Library/Mobile Documents/com~apple..." nil :subtreep nil)
  org-hugo-export-to-md(nil :subtreep nil)
  org-hugo--export-subtree-to-md(nil nil)
  org-hugo-export-wim-to-md(nil nil nil)
  (lambda (a _s v _b) (org-hugo-export-wim-to-md nil a v))(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)

Ox-Hugo Debug Information

I'm sorry after I did following two steps, i couldn't find any debug information between </summary> and </details>.

I'll paste all I got after I executed M-x org-hugo-debug-info below.

Debug information for ox-hugo

Emacs Version

GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
 of 2020-08-12

Org Version

Org mode version 9.4.4 (9.4.4-33-g5450d6-elpaplus @ /Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/)

Hugo Version

hugo v0.82.0+extended darwin/amd64 BuildDate=unknown
Org load-path shadows

Warning: Possible mixed installation of Org

/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-stan hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-stan
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-exp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-exp
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-J hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-J
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-emacs-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-emacs-lisp
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-css hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-css
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-lob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lob
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-irc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-irc
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-forth hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-forth
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-macs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macs
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-version hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-version
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-scheme hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-scheme
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-abc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-abc
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-C hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-C
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-capture hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-capture
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-ref hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ref
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-clojure hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-clojure
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-mouse hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mouse
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-ledger hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ledger
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-ctags hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-ctags
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-entities hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-entities
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-archive hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-archive
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-screen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-screen
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-bibtex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bibtex
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-haskell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-haskell
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-asymptote hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-asymptote
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-table
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-eww hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eww
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-org
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-num hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-num
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-plot hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-plot
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-rmail hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-rmail
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-awk hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-awk
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-groovy hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-groovy
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-octave hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-octave
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-faces hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-faces
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-colview hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-colview
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-R hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-R
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-timer hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-timer
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-ebnf hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ebnf
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-mobile hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-mobile
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-fortran hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-fortran
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-shell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shell
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-perl hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-perl
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-sqlite hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sqlite
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-sed hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sed
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-list hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-list
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-ruby hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ruby
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-eval hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eval
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-habit hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-habit
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-clock hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-clock
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-goto hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-goto
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-html hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-html
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-src hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-src
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-lisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lisp
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-eshell
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-ditaa hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ditaa
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-pcomplete hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-pcomplete
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-lint hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-lint
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-latex
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-sass hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sass
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-io hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-io
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-tangle hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-tangle
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-calc hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-calc
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-java hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-java
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-icalendar hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-icalendar
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-mhe hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-mhe
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-attach-git hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach-git
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-md hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-md
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-beamer hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-beamer
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-element hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-element
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-protocol hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-protocol
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-mscgen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-mscgen
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-gnuplot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-gnuplot
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-tempo hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-tempo
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-latex hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-latex
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-w3m hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-w3m
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-id hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-id
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-vala hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-vala
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-man hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-man
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-feed hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-feed
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-lua hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lua
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-table hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-table
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-ocaml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-ocaml
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-coq hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-coq
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-gnus hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-gnus
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-picolisp hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-picolisp
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-indent hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-indent
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-lilypond hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-lilypond
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-matlab hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-matlab
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-datetree hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-datetree
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-docview hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-docview
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-python hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-python
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-makefile hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-makefile
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-duration hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-duration
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-agenda hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-agenda
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-dot hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-dot
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-js hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-js
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-publish hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-publish
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-inlinetask hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-inlinetask
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-org hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-org
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-keys hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-keys
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-core hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-core
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-compat hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-compat
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-odt hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-odt
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-info hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-info
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-plantuml hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-plantuml
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-eshell hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-eshell
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-ascii hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-ascii
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-loaddefs hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-loaddefs
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-hledger hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-hledger
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-maxima hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-maxima
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org hides /Applications/Emacs.app/Contents/Resources/lisp/org/org
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ol-bbdb hides /Applications/Emacs.app/Contents/Resources/lisp/org/ol-bbdb
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-macro hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-macro
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-sql hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-sql
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-attach hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-attach
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-processing hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-processing
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ox-texinfo hides /Applications/Emacs.app/Contents/Resources/lisp/org/ox-texinfo
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-crypt hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-crypt
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-footnote hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-footnote
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/org-install hides /Applications/Emacs.app/Contents/Resources/lisp/org/org-install
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-comint hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-comint
/Users/randolph/.emacs.d/elpa/org-plus-contrib-20210322/ob-shen hides /Applications/Emacs.app/Contents/Resources/lisp/org/ob-shen

Study the output of M-x list-load-path-shadows.

ox-hugo defcustoms

org-hugo-section “posts”
org-hugo-use-code-for-kbd nil
org-hugo-preserve-filling t
org-hugo-delete-trailing-ws t
org-hugo-prefer-hyphen-in-tags t
org-hugo-allow-spaces-in-tags t
org-hugo-tag-processing-functions (org-hugo–tag-processing-fn-replace-with-spaces-maybe org-hugo–tag-processing-fn-replace-with-hyphens-maybe)
org-hugo-auto-set-lastmod nil
org-hugo-export-with-toc nil
org-hugo-export-with-section-numbers nil
org-hugo-front-matter-format “toml”
org-hugo-default-static-subdirectory-for-externals “ox-hugo”
org-hugo-external-file-extensions-allowed-for-copying (“jpg” “jpeg” “tiff” “png” “svg” “gif” “mp4” “pdf” “odt” “doc” “ppt” “xls” “docx” “pptx” “xlsx”)
org-hugo-date-format “%Y-%m-%dT%T%z”
org-hugo-paired-shortcodes “”
org-hugo-langs-no-descr-in-code-fences nil
org-hugo-suppress-lastmod-period 0.0
org-hugo-front-matter-format “toml”
kaushalmodi commented 3 years ago

Hello,

I cannot obviously have the same #+hugo_base_dir as in your example, but I tried this and it worked

#+hugo_base_dir: ./dir name with space/

#+macro: issue =ox-hugo= Issue #[[https://github.com/kaushalmodi/ox-hugo/issues/$1][$1]]

* Blog Ideas
** TODO my first blog
:PROPERTIES:
:EXPORT_FILE_NAME: my-first-blog
:END:
{{{issue(436)}}}
this is the first one.

I believe you are seeing this issue because of that warning:

Warning: Possible mixed installation of Org

The fix would be to clean up your Org installation so that you don't have a mix of very old and very new Org versions. E.g. you don't need /Applications/Emacs.app/Contents/Resources/lisp/org/ at all as you are installing the latest Org from Elpa. You can update your load-paths so that that old path doesn't get loaded at all. Alternatively, you can just delete that old dir (/Applications/Emacs.app/Contents/Resources/lisp/org/), restart Emacs, and see if you still see this same issue (you should not 🤞 ).

wowhxj commented 3 years ago

Hello,

I cannot obviously have the same #+hugo_base_dir as in your example, but I tried this and it worked

#+hugo_base_dir: ./dir name with space/

#+macro: issue =ox-hugo= Issue #[[https://github.com/kaushalmodi/ox-hugo/issues/$1][$1]]

* Blog Ideas
** TODO my first blog
:PROPERTIES:
:EXPORT_FILE_NAME: my-first-blog
:END:
{{{issue(436)}}}
this is the first one.

I believe you are seeing this issue because of that warning:

Warning: Possible mixed installation of Org

The fix would be to clean up your Org installation so that you don't have a mix of very old and very new Org versions. E.g. you don't need /Applications/Emacs.app/Contents/Resources/lisp/org/ at all as you are installing the latest Org from Elpa. You can update your load-paths so that that old path doesn't get loaded at all. Alternatively, you can just delete that old dir (/Applications/Emacs.app/Contents/Resources/lisp/org/), restart Emacs, and see if you still see this same issue (you should not 🤞 ).

Hi,

Thanks for the reply. I tried your advice by deleting /Applications/Emacs.app/Contents/Resources/lisp/org/ directory. After that, I restarted Emacs and tried to export again. Still FAILED.

Then, I tried to delete all my config and packages except org, ox-hugo and tried again. This time Succeed.

The problem must be some config issure or package conflict. I'll add packages one by one and try to figure out what is going on here. Would leave this issue open for a while.

wowhxj commented 3 years ago

After tried one package by one package, finally I found the problem.

In my exporting config, I changed org-export-backends to (html pandoc) as following:

(use-package ox
  :ensure nil
  :after org
  :custom
  (org-export-with-toc t)
  (org-export-with-tags 'not-in-toc)
  (org-export-with-email t)
  (org-export-with-author t)
  (org-export-with-drawers nil)
  (org-export-with-priority t)
  (org-export-with-footnotes t)
  (org-export-with-smart-quotes t)
  (org-export-with-section-numbers nil)
  (org-export-with-sub-superscripts '{})
  ;; Use :eval never-export header argument to avoid evaluating.
  (org-export-use-babel t)
  (org-export-headline-levels 5)
  (org-export-coding-system 'utf-8)
  (org-export-with-broken-links 'mark)
  (org-export-backends '(html pandoc))
  )

I think that's the reason why ox-hugo cannot find the backends.

After I modified my config as following, problem resolved.

(use-package ox
  :ensure nil
  :after org
  :config
  (add-to-list 'org-export-backends 'pandoc)
  :custom
  (org-export-with-toc t)
  (org-export-with-tags 'not-in-toc)
  (org-export-with-email t)
  (org-export-with-author t)
  (org-export-with-drawers nil)
  (org-export-with-priority t)
  (org-export-with-footnotes t)
  (org-export-with-smart-quotes t)
  (org-export-with-section-numbers nil)
  (org-export-with-sub-superscripts '{})
  ;; Use :eval never-export header argument to avoid evaluating.
  (org-export-use-babel t)
  (org-export-headline-levels 5)
  (org-export-coding-system 'utf-8)
  (org-export-with-broken-links 'mark)
  )

Although I don't know the root cause. Maybe ox-hugo use one of backends which is removed by me. I'd like to share this with you. Will close this issue. Thanks again..

kaushalmodi commented 3 years ago

Maybe ox-hugo use one of backends which is removed by me.

Yes, ox-hugo backend extends from ox-md and ox-md extends from ox-html.

Unless there's a real need, I wouldn't advise that you remove any of the inbuilt Org backends.