ContentForHeaderModification
Identifies code that tries to parse content_for_header
.
You shouldn't rely on the content of content_for_header
as it might change in the future, which could cause your Liquid code behavior to change.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
The following code extracts content from content_for_header
:
{% assign parts = content_for_header | split: ',' %}
Anchor to ✓ Pass✓ Pass
Below is the only acceptable usage of content_for_header
:
{{ content_for_header }}
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended.
Was this page helpful?