blog/_includes/functions/log.html
2020-09-29 12:54:54 +08:00

18 lines
378 B
HTML

{% 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 %}