mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
5fd1e74903
``` git subtree add --prefix=docs/ https://github.com/gohugoio/hugoDocs.git master --squash ``` Closes #11925
909 B
909 B
title | description | categories | keywords | action | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
, or relLangURL
functions instead.
{{% /note %}}