Skip to content

Issues with generating links to internally hosted pdf files. #1279

Closed Answered by markdumay
anoduck asked this question in Help
Discussion options

You must be logged in to vote

Thanks for sharing the elaborate example. Let me clarify a few concepts first:

  • ref and relref are shortcodes provided by Hugo. They resolve to the path of a content page.
  • link is a custom shortcode maintained by the Hinode theme. It resolves to both content pages and site assets.
  • Hinode implements a render hook to handle native markdown links since release v0.26.0.

Hugo treats content pages differently than (static) site assets and page resources. In general, you cannot use relref and ref to reference a static asset such as an pdf file. Hinode tries to simplify (unify) the handling of content pages and site assets. You can use standard Markdown links to reference both a content page and…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anoduck
Comment options

Answer selected by anoduck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants