summaryrefslogtreecommitdiff
path: root/_includes/functions/log.html
blob: 95d18564784bf59c7f968b86afeff7b55c04ba29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% if include.params.level %}
  {% assign level = include.params.level %}
{% endif %}

{% if include.params.msg %}
  {% assign msg = include.params.msg %}
{% endif %}

{% if site.debug == true %}
  {% if level == 'debug' %}
    {% if jekyll.environment == "development" %}
      <!-- {{ msg }} -->
    {% endif %}
  {% else %}
      <!-- {{ msg }} -->
  {% endif %}
{% endif %}