5
5
; ; URL: https://ox-hugo.scripter.co
6
6
; ; Package-Requires: ((emacs "24.5") (org "9.0"))
7
7
; ; Keywords: Org, markdown, docs
8
- ; ; Version: 0.4
8
+ ; ; Version: 0.4.1
9
9
10
10
; ;; Commentary:
11
11
@@ -1905,7 +1905,12 @@ contents of hidden elements.
1905
1905
Return output file's name."
1906
1906
(interactive )
1907
1907
(org-hugo--before-export-function)
1908
- (let* ((info (org-combine-plists
1908
+ ; ; Allow certain `ox-hugo' properties to be inherited. It is
1909
+ ; ; important to set the `org-use-property-inheritance' before
1910
+ ; ; setting the `info' var so that properties like
1911
+ ; ; EXPORT_HUGO_SECTION get inherited.
1912
+ (let* ((org-use-property-inheritance (org-hugo--selective-property-inheritance))
1913
+ (info (org-combine-plists
1909
1914
(org-export--get-export-attributes
1910
1915
'hugo subtreep visible-only)
1911
1916
(org-export--get-buffer-attributes)
@@ -1920,9 +1925,8 @@ Return output file's name."
1920
1925
(pub-dir (let ((dir (concat base-dir content-dir section-dir)))
1921
1926
(make-directory dir :parents ) ; Create the directory if it does not exist
1922
1927
dir))
1923
- (outfile (org-export-output-file-name " .md" subtreep pub-dir))
1924
- ; ; Allow certain `ox-hugo' properties to be inherited.
1925
- (org-use-property-inheritance (org-hugo--selective-property-inheritance)))
1928
+ (outfile (org-export-output-file-name " .md" subtreep pub-dir)))
1929
+ ; ; (message "[org-hugo-export-to-md DBG] section-dir = %s" section-dir)
1926
1930
(unless subtreep ; Reset the variables that are used only for subtree exports
1927
1931
(setq org-hugo--subtree-count 0 )
1928
1932
(setq org-hugo--subtree-coord nil ))
0 commit comments