diff --git a/_config.yml b/_config.yml index 9e976ef85640..23df4df26564 100644 --- a/_config.yml +++ b/_config.yml @@ -24,6 +24,10 @@ kramdown: syntax_highlighter: rouge toc_levels: 2..3 +# https://jekyllrb.com/docs/configuration/liquid/ +liquid: + error_mode: strict + exclude: - _releaser - _samples diff --git a/_includes/cli.md b/_includes/cli.md index 42d0efbd24b2..c2830f46b873 100644 --- a/_includes/cli.md +++ b/_includes/cli.md @@ -133,7 +133,8 @@ For example uses of this command, refer to the [examples section](#examples) bel {%- endif -%} {% capture flag-orchestrator %}{% if option.swarm %}Swarm{% endif %}{% if option.kubernetes %}Kubernetes{% endif %}{% endcapture %} {% capture all-badges %}{{ deprecated-badge }}{{ experimental-daemon-badge }}{{ experimental-cli-badge }}{{ min-api }}{{ flag-orchestrator }}{% endcapture %} - {% assign defaults-to-skip = "[],map[],false,0,0s,default,'',\"\"" | split: ',' %} + {% capture defaults-to-skip-str %}[],map[],false,0,0s,default,'',""{% endcapture %} + {% capture defaults-to-skip %}{{ defaults-to-skip-str | split: ',' }}{% endcapture %} {% capture option-default %}{% if option.default_value %}{% unless defaults-to-skip contains option.default_value or defaults-to-skip == blank %}`{{ option.default_value }}`{% endunless %}{% endif %}{% endcapture %}