Skip to content

Add alternative to relref #135

Open
Open
@toby63

Description

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)):

  1. https://github.com/13rac1/goldmark-wikilink
    Would be simply: [[pagename]]

    It seems additions are planned, for:

    • sections: [[pagename#category]]
    • custom naming: [[pagename|displayed text]
  2. 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.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions