Comenta una instrucción include dentro de un archivo HTML usando Jekyll


¿Hay alguna manera de comentar una instrucción include dentro de un archivo HTML usando Jekyll?

Por ejemplo, tengo esto dentro de uno de mis archivos HTML que me gustaría comentar temporalmente. El comentario HTML estándar no parece funcionar.

{% include navbar.html %}           
Author: Amit, 2015-01-16

2 answers

{% comment %}
{% include navbar.html %}
{% endcomment %}
 71
Author: David Jacquel,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-01-16 01:10:07

Jekyll utiliza el sistema de plantillas Liquid. Así que lo que funciona para Liquid funciona para Jekyll.

{% comment %}
this is commented out
{% endcomment %}

Https://help.shopify.com/themes/liquid/tags/theme-tags#comment

 10
Author: mccambridge,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-11-01 20:29:16