So I want to edit a link on my website to point to a permalink, while also adding a “#post-top” to the end of the url. Currently I have something like this… <span><a href="{{ .Permalink }}#post-top">
This adds the tag to the end of the line, but the permalink still has a “/” character at the end, so I end up with something like
example.com/posts/post-01/#post-top
which breaks the html tag navigation. Is there any way to edit the permalink string so I can do this? (I’ve tried modifying my config but it seems that is mainly for the saving and placement of files rather than urls?)