Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -3,14 +3,10 @@ title: BaseURL
description: Returns the base URL as defined in the site configuration.
categories: []
keywords: []
action:
related:
- functions/urls/AbsURL
- functions/urls/AbsLangURL
- functions/urls/RelURL
- functions/urls/RelLangURL
returnType: string
signatures: [SITE.BaseURL]
params:
functions_and_methods:
returnType: string
signatures: [SITE.BaseURL]
---
Site configuration:
@@ -25,13 +21,12 @@ Template:
{{ .Site.BaseURL }} → https://example.org/docs/
```
{{% note %}}
There is almost never a good reason to use this method in your templates. Its usage tends to be fragile due to misconfiguration.
> [!note]
> 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.
Use the [`absURL`], [`absLangURL`], [`relURL`], or [`relLangURL`] functions instead.
[`absURL`]: /functions/urls/absURL/
[`absLangURL`]: /functions/urls/absLangURL/
[`relURL`]: /functions/urls/relURL/
[`absURL`]: /functions/urls/absURL/
[`relLangURL`]: /functions/urls/relLangURL/
{{% /note %}}
[`relURL`]: /functions/urls/relURL/