To detect the environment in Jekyll liquid templates, jekyll.environment variable contains the current environment.
For example, to avoid showing post tags in development:
{% if jekyll.environment == “production” %}
{{ post.tags }}
{% endif %}
Search
1 min read
To detect the environment in Jekyll liquid templates, jekyll.environment variable contains the current environment.
For example, to avoid showing post tags in development:
{% if jekyll.environment == “production” %}
{{ post.tags }}
{% endif %}