{%- if icon != 'none' -%} {%- assign file = icon | replace: '_', '-' | prepend: 'icon-' | append: '.svg' -%} {{ file | inline_asset_content }} {%- endif -%}