From 16eef805391c49c68da92ca1c0c72dbf07bc70fd Mon Sep 17 00:00:00 2001 From: Arthur Hammer Date: Thu, 24 Sep 2015 18:16:06 +0200 Subject: [PATCH] Fix broken configuration documentation page --- site/_docs/configuration.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/site/_docs/configuration.md b/site/_docs/configuration.md index af4ce145..ffbef8a4 100644 --- a/site/_docs/configuration.md +++ b/site/_docs/configuration.md @@ -351,27 +351,27 @@ before your site is served. ## Specifying a Jekyll environment at build time -In the build (or serve) arguments, you can specify a Jekyll environment and value. The build will then apply this value in any conditional statements in your content. +In the build (or serve) arguments, you can specify a Jekyll environment and value. The build will then apply this value in any conditional statements in your content. For example, suppose you set this conditional statement in your code: -```liquid - {% raw %} - {% if jekyll.environment == "production" %} - {% include disqus.html %} - {% endif %} - {% endraw %} -``` +{% highlight liquid %} +{% raw %} +{% if jekyll.environment == "production" %} + {% include disqus.html %} +{% endif %} +{% endraw %} +{% endhighlight %} When you build your Jekyll site, the content inside the `if` statement won't be run unless you also specify a `production` environment in the build command, like this: -```bash -JEKYLL_ENV=production jekyll build -``` +{% highlight sh %} +JEKYLL_ENV=production jekyll build +{% endhighlight %} Specifying an environment value allows you to make certain content available only within specific environments. -The default value for `JEKYLL_ENV` is `development`. Therefore if you omit `JEKYLL_ENV` from the build arguments, the default value will be `JEKYLL_ENV=development`. Any content inside `{% raw %}{% if jekyll.environment == "development" %}{% raw %}` tags will automatically appear in the build. +The default value for `JEKYLL_ENV` is `development`. Therefore if you omit `JEKYLL_ENV` from the build arguments, the default value will be `JEKYLL_ENV=development`. Any content inside `{% raw %}{% if jekyll.environment == "development" %}{% endraw %}` tags will automatically appear in the build. Your environment values can be anything you want (not just `development` or `production`). Some elements you might want to hide in development environments include Disqus comment forms or Google Analytics. Conversely, you might want to expose an "Edit me in GitHub" button in a development environment but not include it in production environments.