Preserve links when publishing html from org-mode?

Hi,

I made a new website with org-mode, following the video tutorial, and publishing it on codeberg. It works very well!

My only problem right now is that when I link from content/foo.org to content/bar.org this becomes a link to content/bar.html in the public/foo.html file, instead of remapping the link to public/bar.html. Is there any way to do this? The only way I can do this now is by linking directly to the html file, not the org file, which is a bit tedious…

Link to bar.org from foo.org instead.

For some reason I am getting an Unable to resolve link error if I do that… Will dig a bit more.

OK, figured it out. I need to link it as ./bar.org instead of simply bar.org in order for the structure to be preserved.

1 Like