mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 19:52:38 +00:00
799 B
799 B
title, description, categories, keywords, params
| title | description | categories | keywords | params | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BaseURL | Returns the base URL as defined in the site configuration. |
|
Site configuration:
{{< code-toggle file=hugo >}} baseURL = 'https://example.org/docs/' {{< /code-toggle >}}
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.
Use the
absURL,absLangURL,relURL, orrelLangURLfunctions instead.