Looking for a simple way (for other purpose inside render-heading.html to return an absolute url with anchor. For example https://example.com/post1/#anchor1.
Played with absURL, printf and path.Join without success.
This may be simple, but cannot get this sorted in simple manners. Any help?
this works: <a href="{{ print .Page.Permalink "#" .Anchor }}">{{ .Text }}</a>
But beware, I have unsafe = true.
I agree it doesn’t make a lot of sense. The site says