How can i access “urls.JoinPath” and “.Site.BaseURL” in to single.json file
single.json
How can i access “urls.JoinPath” and “.Site.BaseURL” in to single.json file
single.json
You can use urls.RelURL | Hugo and urls.AbsURL | Hugo instead.
There is almost never a good reason to use this method in your templates. Its usage tends to be fragile due to misconfiguration.
Use theabsURL
,absLangURL
,relURL
, orrelLangURL
functions instead.
—— BaseURL | Hugo