Translating links to external files - best way to achieve? #758
Unanswered
julian-hoch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Besides the generated files markdown from org files (using ox-hugo), my site also has some generated markdown files that were created from JavaScript files using jsdoc-to-markdown. They work fine, but now I want to create links from my org-files to the js files, and have those links show up in the hugo site (while still working in org).
I am wondering, what is the best way to achieve this? So far, I found this approach: https://kisaragi-hiu.com/links-in-both-hugo-and-org/
However, this adds an advice to org-element-link-parser, so not sure if this is the best way. As an alternative I thought about creating a script that directly does a search-and-replace on the created markdown files and adjusts them after ox-hugo runs - also not very elegant.
Any other ideas? Does ox-hugo have any built-in ways to modify org-links before they are inserted into the md file? In my case it would be something like
~/path/to/my/JavaScriptClass.js=>content/api/some-folder-depending-on-path/javascriptclass.mdBeta Was this translation helpful? Give feedback.
All reactions