有没有办法使用Jekyll在HTML文件中注释掉include语句?
例如,我在我的一个HTML文件中有这个,我想暂时注释掉.标准HTML评论似乎不起作用.
{% include navbar.html %}
Run Code Online (Sandbox Code Playgroud)
Dav*_*uel 86
{% comment %}
{% include navbar.html %}
{% endcomment %}
Run Code Online (Sandbox Code Playgroud)
mcc*_*dge 15
Jekyll使用液体模板系统.所以无论什么适用于液体为杰基尔工作.
{% comment %}
this is commented out
{% endcomment %}
Run Code Online (Sandbox Code Playgroud)
https://help.shopify.com/themes/liquid/tags/theme-tags#comment
| 归档时间: |
|
| 查看次数: |
9245 次 |
| 最近记录: |