Liquid Exception: Liquid syntax error (line 170): Unknown tag 'elif' in xyz for markdown 代码块
Liquid Exception: Liquid syntax error (line 170): Unknown tag 'elif' in xyz for markdown code block
我使用 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
我如何正确地转义 "code" 它被正确呈现而不被解释为代码。
{% raw %}
... any liquid or liquid-like code will be displayed as is.
{% endraw %}
我使用 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
我如何正确地转义 "code" 它被正确呈现而不被解释为代码。
{% raw %}
... any liquid or liquid-like code will be displayed as is.
{% endraw %}