summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRicardo N Feliciano <FelicianoTech@gmail.com>2018-03-30 14:15:22 -0400
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-03-30 20:15:22 +0200
commit1823c053c8900cb6ee53b8e5c02939c7398e34dd (patch)
treeaf9c8054784d00bfc0372c4cdb689535f3331f4b /docs
parent511d5d3b7681cb76822098f430ed6862232ca529 (diff)
Add .Site.IsServer
Fixes #4478
Diffstat (limited to 'docs')
-rw-r--r--docs/content/variables/site.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/content/variables/site.md b/docs/content/variables/site.md
index 00b1d20e7..f0c041ecb 100644
--- a/docs/content/variables/site.md
+++ b/docs/content/variables/site.md
@@ -52,6 +52,9 @@ The following is a list of site-level (aka "global") variables. Many of these va
.Site.IsMultiLingual
: whether there are more than one language in this site. See [Multilingual](/content-management/multilingual/) for more information.
+.Site.IsServer
+: a boolean to indicate if the site is being served with Hugo's built-in server. See [`hugo server`](/commands/hugo_server/) for more information.
+
.Site.Language.Lang
: the language code of the current locale (e.g., `en`).
@@ -122,4 +125,4 @@ You can use `.Site.Params` in a [partial template](/templates/partials/) to call
<meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" />
{{< /code >}}
-[config]: /getting-started/configuration/ \ No newline at end of file
+[config]: /getting-started/configuration/