---
---
{{/* relURL */}}
{{"https://gohugo.io/functions/relurl" | markdownify }}
{{"https://gohugo.io/functions/absurl" | markdownify }}
{{"[absURL](../absURL)" | markdownify }}

{{ $.Site.BaseURL }}

{{ "mystyle.css" | absURL }}
{{ "mystyle.css" | relURL }}

{{ "./mystyle.css" | absURL }}
{{ "./mystyle.css" | relURL }}

{{ "../mystyle.css" | absURL }}
{{ "../mystyle.css" | relURL }}

{{ "/foo/mystyle.css" | absURL }}
{{ "/foo/mystyle.css" | relURL }}

{{`it's safe to apply on URI with http or https`}}
{{ "http://gohugo.io/" | absURL }}
{{ "http://gohugo.io/" | relURL }}

{{ "https://gohugo.io/" | absURL }}
{{ "https://gohugo.io/" | relURL }}

{{`but not other schemas:`}}
{{ "ftp://gohugo.io/" | absURL }}
{{ "ftp://gohugo.io/" | relURL }}


{{"https://en.wikipedia.org/wiki/URL" | markdownify }}
{{`scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]`}}
{{ "abc://username:password@example.com:123/path/data?key=value#fragid1" | absURL }}
{{ "abc://username:password@example.com:123/path/data?key=value#fragid1" | relURL }}


https://gohugo.io/functions/relurl
https://gohugo.io/functions/absurl
absURL

https://it-gro.github.io/HugoTemplateCodePlyGnd

https://it-gro.github.io/HugoTemplateCodePlyGnd/mystyle.css
/HugoTemplateCodePlyGnd/mystyle.css

https://it-gro.github.io/HugoTemplateCodePlyGnd/mystyle.css
/HugoTemplateCodePlyGnd/mystyle.css

https://it-gro.github.io/mystyle.css
/mystyle.css

https://it-gro.github.io/foo/mystyle.css
/HugoTemplateCodePlyGnd/foo/mystyle.css

it's safe to apply on URI with http or https
http://gohugo.io/
http://gohugo.io/

https://gohugo.io/
https://gohugo.io/

but not other schemas:
ftp://gohugo.io/
/HugoTemplateCodePlyGnd/ftp:/gohugo.io/


https://en.wikipedia.org/wiki/URL
scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]
abc://username:password@example.com:123/path/data?key=value#fragid1
/HugoTemplateCodePlyGnd/abc:/username:password@example.com:123/path/data?key=value#fragid1