Hello,
I’m sure there is the answer somewhere but I keep struggling. I want to generate this Url in my template (an edit link):
https://github.dev/mat/website/blob/main/content/_index.md
After many tries, I’ve came up with that:
{{ path.Join .Site.Params.editUrl .File.Path }}
It works but it removes a slash in .Site.Params.editUrl.
https://github.dev become https:/github.dev
So my url is missing a slash to work properly:
https:/github.dev/mat/website/blob/main/content/_index.md
I probably don’t use the right function, but I always ended up with not the good url whatever I tried.
Thanks for your help !