-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add alternative to relref #135
Comments
Can you please provide an example of how those would look, and if it is not obvious how that would be better? Also, what technical requirements and additional complexity does this introduce? (Disadvantages) Without having deep-dove, my stomach tells me introducing additional Hugo extensions seems like a bad idea when it already provides the linking functionality. For context and possibly a foreseeable upstream conclusion, what does the linked Hugo ticket say about state, plan, consensus or opinions outside and inside of the Hugo team? The ticket is still open, so I presume the request was not dismissed. |
Note: The following mainly refers to alternative one (the goldmark-wikilink extension).
None that I know of, I would need to test it to be sure (which I might do in some time).
🤔 Afaik this does not replace or disable anything, so I don't really see any danger.
Well most comments from the team are quite old (2018), but they seemed interested and not against it. Still one team member suggested render hooks instead (gohugoio/hugo#3606 (comment)), which is alternative 2 from above and which is implemented natively into hugo it seems. |
Interesting. The render hooks seem to be https://github.com/bep/portable-hugo-links/tree/master/layouts/_default/_markup So this would be a native solution, but something we would have to maintain ourselves, and the complexity and (probably marginal) runtime increase would be the disadvantages. It seems like they could be viable. It would need an adequate proposition and description of what we do. |
Interesting indeed. Interesting bits:
|
relref
is quite long and complicated to write, for example:[Report a vulnerability]({{< relref "security#reporting-a-vulnerability" >}})
{{< wiki "3rd Party Applications" "already existing one" />}
Sadly upstream hugo does not seem to implement an alternative by themselves: gohugoio/hugo#3606
But I found two potential alternatives (but I don't know if they work correctly (as I intend it)):
https://github.com/13rac1/goldmark-wikilink
Would be simply:
[[pagename]]
It seems additions are planned, for:
[[pagename#category]]
[[pagename|displayed text]
https://github.com/bep/portable-hugo-links/
I have to admit that I am not sure this works as I understand it, but it seems this is natively possible with newer versions of hugo 🤔. So no extensions needed.
The text was updated successfully, but these errors were encountered: