From 5b0edfd79082ae1e78331179bc0d3db3af1b972a Mon Sep 17 00:00:00 2001 From: Ricardo N Feliciano Date: Fri, 30 Mar 2018 14:15:22 -0400 Subject: [PATCH] Add .Site.IsServer Fixes #4478 --- content/variables/site.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/variables/site.md b/content/variables/site.md index 00b1d20e7..f0c041ecb 100644 --- a/content/variables/site.md +++ b/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 {{< /code >}} -[config]: /getting-started/configuration/ \ No newline at end of file +[config]: /getting-started/configuration/