【发布时间】:2020-01-29 07:59:03
【问题描述】:
我使用Jekyll 创建我的静态网站。我的降价之一具有以下代码块
....
```yaml
# Example pillar 'packages' YAML
{% if grains['os'] == 'RedHat' %}
apache: httpd
git: git
{% elif grains['os'] == 'Debian' %}
apache: apache2
git: git-core
{% endif %}
` ` `
...
但是网站的生成失败了
Liquid Exception: Liquid syntax error (line 170): Unknown tag 'elif' in
我将如何正确地转义这样的“代码”,使其正确呈现而不被解释为代码。
【问题讨论】: