kaushalmodi / ox-hugo

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

Fail to convert to md test site, error on links to id:XXXX.. #285

Closed rolojf closed 5 years ago

rolojf commented 5 years ago

Great work, thanks for everything. Just let you know I found something that doesn't seem right.

Actual Behavior

Following the instructions from: https://ox-hugo.scripter.co/doc/tests-site/#alternative-way When in Emacs try to Export all subrees ir runs ok, except from the following error:

Expected Behavior

Compile md pages as it did once I deleted these lines.

How to Reproduce the Issue

Follow the same instructions

Example Org File

https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/content-org/all-posts.org

Generated Markdown File or Error

From the messages buffer (edited): org-export-resolve-fuzzy-link: Unable to resolve link; aborting: "id:de0df718-f9b4-4449-bb0a-eb4402fa5fcb" org-export-resolve-fuzzy-link: Unable to resolve link; aborting: "id:1e5e0bcd-caea-40ad-a75b-e488634c2678" org-export-resolve-fuzzy-link: Unable to resolve link; aborting: "id:de0df718-f9b4-4449-bb0a-eb4402fa5fcb" org-export-resolve-fuzzy-link: Unable to resolve link; aborting: "id:1e5e0bcd-caea-40ad-a75b-e488634c2678"

Ox-Hugo Debug Information

Debug Info # Debug information for `ox-hugo` ## Emacs Version GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-04-12 ## Org Version Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.2/lisp/org/) ## Hugo Version Hugo Static Site Generator v0.57.2/extended linux/amd64 BuildDate: unknown ### 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-langs-no-descr-in-code-fences nil
org-hugo-suppress-lastmod-period 0.0
org-hugo-front-matter-format "toml"
kaushalmodi commented 5 years ago

I'll update those instructions.. you need to do (require 'org-id) too.

rolojf commented 5 years ago

All clear now, thanks.