Link to static page

I’d like to link to static html content. I know, this is not the hugo way but as a temporary hack it should be acceptable. Problem is, the url in the link is not generated correctly.

description: “New site. If you have problems you can still access the old one for a limited time at <{{ /old/ | absURL }}>.”

renders as

New site. If you have problems you can still access the old one for a limited time at <{{ /old/ | absURL }}>.

Of course, I could just hardcode the complete url but since i have different base urls it would be nicer to have it generated.

Is that what you looking?

{{ "/old/" | absURL }}

How about using a markdown link?

[old one](/old/)
1 Like

I agree and that’s what I tried first. But it doesn’t resolve as expected. Your version renders as “…under [/old/]({{ “/old/” | absURL }}).”

[old one](/old/) works, but I’d really like the base url visible in the link target as that changes based on the config.

Either (a) place your text within a template instead of within the markdown, or (b) create a shortcode.