Hi,
I finally got the gist of my github page.
There is an issue with just two links (seemingly) out of the whole site. The code to produce them is:
{{with relURL "/fonts/norse.woff2"}}
<style>
@font-face {
font-display: optinal;
font-family: "norse";
src: url('{{.}}') format("woff2");
}
</style>
<link rel="preload" href="{{.}}" as="font" type="font/woff2" crossOrigin>
{{end}}
the result is:
<style>@font-face{font-display:optinal;font-family:norse;src:url(/fonts/norse.woff2)format("woff2")}</style><link rel=preload href=/fonts/norse.woff2 as=font type=font/woff2 crossorigin>
my BaseURL is: `BaseURL = “https://perso-domain.github.io/website/”
So why is the base path not in the links’ url ? Is this a bug ? I thought that was the purpose of relURL ?
{{< relurl “quez.html” >}} → /foo/bar/baz/quez.html
{{< relurl “/quez.html” >}} → /foo/bar/baz/quez.html
{{< relurl “…/quez.html” >}} → /foo/bar/quez.html
{{< relurl “./quez.html” >}} → /foo/bar/baz/quez.html
I know there are plenty of issues raised about relURL… None simple to understand
Thanks