Skip to content

Commit

Permalink
Minor consistency edits; no functional change
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Mar 14, 2022
1 parent 23ea546 commit fc79424
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ox-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -4383,10 +4383,10 @@ links."
(destination (if (string= type "fuzzy")
(org-export-resolve-fuzzy-link link info)
(progn
;; update `org-id-locations' if it's nil or empty hash table
;; to avoid broken link
(if (or (eq org-id-locations nil) (zerop (hash-table-count org-id-locations)))
(org-id-update-id-locations (directory-files "." t "\.org\$" t)))
;; Update `org-id-locations' if it's nil or empty hash table
;; to avoid broken link.
(when (or (eq org-id-locations nil) (zerop (hash-table-count org-id-locations)))
(org-id-update-id-locations (directory-files "." :full "\.org\$" :nosort)))
(org-export-resolve-id-link link (org-export--collect-tree-properties ast info)))))
(source-path (org-hugo--get-element-path link info))
(destination-path (org-hugo--get-element-path destination info))
Expand Down

0 comments on commit fc79424

Please sign in to comment.