kaushalmodi / ox-hugo

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

Empty footnote causes ox-hugo to fail export with (wrong-type-argument arrayp nil) #704

Open winny- opened 1 year ago

winny- commented 1 year ago

Actual Behavior

Exporting a org-mode document causes (wrong-type-argument arrayp nil) if there is a footnote definition without any body (empty footnote). If one tries to export a subtree with no footnotes, ox-hugo will error out if an empty footnote exists elsewhere in the org-mode document.

Expected Behavior

ox-hugo exports the document and handles empty footnotes.

How to Reproduce the Issue

Using the example org file, first try C-x C-e H H on each subtree, it fails regardless of which subtree is exported. C-x C-e H A also errors.

Example Org File

#+hugo_base_dir: hugo
* test post
:PROPERTIES:
:EXPORT_FILE_NAME: test_post
:EXPORT_DATE: 2023-02-06T18:35:00-05:00
:END:

example text with empty footnote[fn:1]
* Test post 2
:PROPERTIES:
:EXPORT_FILE_NAME: test_post2
:EXPORT_DATE: 2023-02-06T18:36:00-05:00
:END:

This will fail if you try to export this subtree (=C-x C-e H H= with
cursor on this subtree) because of the other post's empty footnote.

* Footnotes

[fn:1] 

Generated Markdown File or Error

Backtrace:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  replace-regexp-in-string("[ \11\n\15]+\\'" "" nil)
  org-element-footnote-definition-interpreter((footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (...) :parent (org-data nil ... ... #37)) #21)) #1))) nil)
  #f(compiled-function (data parent) #<bytecode 0x21df37da209f9ff>)((footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (...) :parent (org-data nil ... ... #37)) #21)) #1))) (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #18))) :parent (org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #56) (keyword ...)) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title ... :parent #56) (section ... ... ...)) #18)) #2)) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #2))))
  #f(compiled-function (datum) #<bytecode -0x28c32724e786643>)((footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (...) :parent (org-data nil ... ... #37)) #21)) #1))))
  mapconcat(#f(compiled-function (datum) #<bytecode -0x28c32724e786643>) ((footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title ... :parent ...) #23)) . #2)))) "")
  #f(compiled-function (data parent) #<bytecode 0x21df37da209f9ff>)((section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #17))) :parent (org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #55) (keyword ...)) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title ... :parent #55) (section ... ... ...)) #17)) #1)) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #1))) (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #2))) :parent (org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #40) (keyword (:key "HUGO_BASE_DIR" :value "hugo" :begin 1 :end 23 :post-blank 0 :post-affiliated 1 :parent #43))) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title (#("test post" 0 9 ...)) :parent #40) (section (:begin 35 :end 164 :contents-begin 35 :contents-end 163 :post-blank 1 :post-affiliated 35 :parent #44) (property-drawer (:begin 35 :end 124 :contents-begin 48 :contents-end 117 :post-blank 1 :post-affiliated 35 :parent #47) (node-property ...) (node-property ...)) (paragraph (:begin 124 :end 163 :contents-begin 124 :contents-end 163 :post-blank 0 :post-affiliated 124 :parent #47) #("example text with empty footnote" 0 32 ...) (footnote-reference ...) #("\n" 0 1 ...)))) #2)) (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent #2) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #5)))))
  #f(compiled-function (datum) #<bytecode -0x28c31db8e720643>)((section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #17))) :parent (org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #55) (keyword ...)) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title ... :parent #55) (section ... ... ...)) #17)) #1)) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #1))))
  mapconcat(#f(compiled-function (datum) #<bytecode -0x28c31db8e720643>) ((section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 ...)) :parent (org-data nil (section ... ...) (headline ... ...) #19)) . #2)) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #3)))) "")
  #f(compiled-function (data parent) #<bytecode 0x21df37da209f9ff>)((headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #1))) :parent (org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #39) (keyword (:key "HUGO_BASE_DIR" :value "hugo" :begin 1 :end 23 :post-blank 0 :post-affiliated 1 :parent #42))) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title (#("test post" 0 9 ...)) :parent #39) (section (:begin 35 :end 164 :contents-begin 35 :contents-end 163 :post-blank 1 :post-affiliated 35 :parent #43) (property-drawer (:begin 35 :end 124 :contents-begin 48 :contents-end 117 :post-blank 1 :post-affiliated 35 :parent #46) (node-property ...) (node-property ...)) (paragraph (:begin 124 :end 163 :contents-begin 124 :contents-end 163 :post-blank 0 :post-affiliated 124 :parent #46) #("example text with empty footnote" 0 32 ...) (footnote-reference ...) #("\n" 0 1 ...)))) #1)) (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent #1) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #4)))) nil)
  #f(compiled-function (obj) #<bytecode 0x1fa51ef5ce57d891>)((headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #1))) :parent (org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #39) (keyword (:key "HUGO_BASE_DIR" :value "hugo" :begin 1 :end 23 :post-blank 0 :post-affiliated 1 :parent #42))) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title (#("test post" 0 9 ...)) :parent #39) (section (:begin 35 :end 164 :contents-begin 35 :contents-end 163 :post-blank 1 :post-affiliated 35 :parent #43) (property-drawer (:begin 35 :end 124 :contents-begin 48 :contents-end 117 :post-blank 1 :post-affiliated 35 :parent #46) (node-property ...) (node-property ...)) (paragraph (:begin 124 :end 163 :contents-begin 124 :contents-end 163 :post-blank 0 :post-affiliated 124 :parent #46) #("example text with empty footnote" 0 32 ...) (footnote-reference ...) #("\n" 0 1 ...)))) #1)) (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent #1) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #4)))))
  mapconcat(#f(compiled-function (obj) #<bytecode 0x1fa51ef5ce57d891>) ((section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent (org-data nil . #2)) (keyword (:key "HUGO_BASE_DIR" :value "hugo" :begin 1 :end 23 :post-blank 0 :post-affiliated 1 :parent #3))) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title (#("test post" 0 9 (:parent #4))) :parent (org-data nil . #2)) (section (:begin 35 :end 164 :contents-begin 35 :contents-end 163 :post-blank 1 :post-affiliated 35 :parent #4) (property-drawer (:begin 35 :end 124 :contents-begin 48 :contents-end 117 :post-blank 1 :post-affiliated 35 :parent #7) (node-property (:key "EXPORT_FILE_NAME" :value "test_post" :begin 48 :end 77 :post-blank 0 :post-affiliated 48 :parent #10)) (node-property (:key "EXPORT_DATE" :value "2023-02-06T18:35:00-05:00" :begin 77 :end 117 :post-blank 0 :post-affiliated 77 :parent #10))) (paragraph (:begin 124 :end 163 :contents-begin 124 :contents-end 163 :post-blank 0 :post-affiliated 124 :parent #7) #("example text with empty footnote" 0 32 (:parent #11)) (footnote-reference (:label "1" :type standard :begin 156 :end 162 :contents-begin nil :contents-end nil :post-blank 0 :parent #11)) #("\n" 0 1 (:parent #11))))) (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #5))) :parent (org-data nil . #2)) (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent #5) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #8))))) "")
  #f(compiled-function (data parent) #<bytecode 0x21df37da209f9ff>)((org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #1) (keyword (:key "HUGO_BASE_DIR" :value "hugo" :begin 1 :end 23 :post-blank 0 :post-affiliated 1 :parent #4))) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title (#("test post" 0 9 (:parent #5))) :parent #1) (section (:begin 35 :end 164 :contents-begin 35 :contents-end 163 :post-blank 1 :post-affiliated 35 :parent #5) (property-drawer (:begin 35 :end 124 :contents-begin 48 :contents-end 117 :post-blank 1 :post-affiliated 35 :parent #8) (node-property (:key "EXPORT_FILE_NAME" :value "test_post" :begin 48 :end 77 :post-blank 0 :post-affiliated 48 :parent #11)) (node-property (:key "EXPORT_DATE" :value "2023-02-06T18:35:00-05:00" :begin 77 :end 117 :post-blank 0 :post-affiliated 77 :parent #11))) (paragraph (:begin 124 :end 163 :contents-begin 124 :contents-end 163 :post-blank 0 :post-affiliated 124 :parent #8) #("example text with empty footnote" 0 32 (:parent #12)) (footnote-reference (:label "1" :type standard :begin 156 :end 162 :contents-begin nil :contents-end nil :post-blank 0 :parent #12)) #("\n" 0 1 (:parent #12))))) (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #6))) :parent #1) (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent #6) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #9))))) nil)
  org-element-interpret-data((org-data nil (section (:begin 1 :end 23 :contents-begin 1 :contents-end 23 :post-blank 0 :post-affiliated 1 :parent #1) (keyword (:key "HUGO_BASE_DIR" :value "hugo" :begin 1 :end 23 :post-blank 0 :post-affiliated 1 :parent #4))) (headline (:raw-value "test post" :begin 23 :end 164 :pre-blank 0 :contents-begin 35 :contents-end 163 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 23 :EXPORT_DATE "2023-02-06T18:35:00-05:00" :EXPORT_FILE_NAME "test_post" :title (#("test post" 0 9 (:parent #5))) :parent #1) (section (:begin 35 :end 164 :contents-begin 35 :contents-end 163 :post-blank 1 :post-affiliated 35 :parent #5) (property-drawer (:begin 35 :end 124 :contents-begin 48 :contents-end 117 :post-blank 1 :post-affiliated 35 :parent #8) (node-property (:key "EXPORT_FILE_NAME" :value "test_post" :begin 48 :end 77 :post-blank 0 :post-affiliated 48 :parent #11)) (node-property (:key "EXPORT_DATE" :value "2023-02-06T18:35:00-05:00" :begin 77 :end 117 :post-blank 0 :post-affiliated 77 :parent #11))) (paragraph (:begin 124 :end 163 :contents-begin 124 :contents-end 163 :post-blank 0 :post-affiliated 124 :parent #8) #("example text with empty footnote" 0 32 (:parent #12)) (footnote-reference (:label "1" :type standard :begin 156 :end 162 :contents-begin nil :contents-end nil :post-blank 0 :parent #12)) #("\n" 0 1 (:parent #12))))) (headline (:raw-value "Footnotes" :begin 164 :end 185 :pre-blank 1 :contents-begin 177 :contents-end 185 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p t :archivedp nil :commentedp nil :post-affiliated 164 :title (#("Footnotes" 0 9 (:parent #6))) :parent #1) (section (:begin 177 :end 185 :contents-begin 177 :contents-end 185 :post-blank 0 :post-affiliated 177 :parent #6) (footnote-definition (:label "1" :begin 177 :end 185 :contents-begin nil :contents-end nil :pre-blank 0 :post-blank 0 :post-affiliated 177 :parent #9))))))
  org-hugo--get-pre-processed-buffer()
  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)
  command-execute(org-export-dispatch)

Ox-Hugo Debug Information

Debug Info # Debug information for `ox-hugo` ## Emacs Version GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) ## Org Version Org mode version 9.5.5 (release_9.5.5 @ /nix/store/c185j73k7rdfki612v0g1arm4c7ah3g4-emacs-28.2/share/emacs/28.2/lisp/org/) ## Hugo Version hugo v0.106.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs ### Org `load-path` shadows No Org mode shadows found in `load-path` ## `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-suppress-lastmod-period 0.0
org-hugo-front-matter-format "toml"