Comment out an include statement inside an HTML file using Jekyll

Amit picture Amit · Jan 16, 2015 · Viewed 11.1k times · Source

Is there a way to comment out an include statement inside an HTML file using Jekyll?

For example I have this inside one of my HTML files that I'd like to temporarily comment out. Standard HTML comment doesn't seem to work.

{% include navbar.html %}           

Answer

David Jacquel picture David Jacquel · Jan 16, 2015
{% comment %}
{% include navbar.html %}
{% endcomment %}