BaseURL
Returns the base URL as defined in your project configuration.
- Syntax
- SITE.BaseURL
- Returns
- string
Project configuration:
baseURL: https://example.org/docs/
baseURL = 'https://example.org/docs/'
{
"baseURL": "https://example.org/docs/"
}
Template:
{{ site.BaseURL }} → https://example.org/docs/There is almost never a good reason to use this method in your templates. Its usage tends to be fragile due to misconfiguration.
Use the absURL, absLangURL, relURL, or relLangURL functions instead.
Last updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page