Skip to content

Conversation

@kaushalmodi
Copy link
Owner

No description provided.

@ameyp
Copy link

ameyp commented Mar 5, 2025

It sort of makes sense to me that org-export-data would fail for a link that points to an org file that doesn't actually exist (given that the .pre-processed.org content is in a buffer that isn't written to a file). How did this work in the first place? Any idea what changes to org-mode/ox broke it?

@kaushalmodi
Copy link
Owner Author

I haven't found time to debug, but something definitely broke in upstream Org.

Ox-hugo used to create a dummy "pre-processed" buffer and links to other places in the same Org file were considered as links to "another" dummy pre-processed file. Later, the "pre-processed" part from the dummy file name was removed.

It was certainly a smart hack but a hack nonetheless. But it doesn't work any more.

I don't have time at the moment to look into this. I'd appreciate if any ox-hugo user is able to help fix this.

@ameyp
Copy link

ameyp commented Mar 6, 2025

If it's helpful to whoever picks this up - org-mode 9.7.3 might have broken this: emacs-mirror/emacs@5a125fb. That is at the very least the commit that introduced the error message about broken links that gets printed with recent emacs versions.

@kaushalmodi
Copy link
Owner Author

Maybe code from https://one.tonyaldon.com/ can help

@HaoZeke
Copy link
Contributor

HaoZeke commented Aug 29, 2025

Don't have a solution, but do have a workaround, mostly automating the relref conversion from the titles:

https://rgoswami.me/snippets/refactoring-ox-hugo-orgmode/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants