_includes/icon.html in wai-website-theme-0.1.6 vs _includes/icon.html in wai-website-theme-1.2

- old
+ new

@@ -1,6 +1,6 @@ -{% if include.name %}{%assign name = include.name%}{% else %}{% assign name="default" %}{% endif %} -{% if include.label %} -<svg aria-label="{{ include.label }}" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | prepend: site.github.url }}#icon-{{ name }}"></use></svg> -{% else %} -<svg aria-hidden="true" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | | prepend: site.github.url }}#icon-{{ name }}"></use></svg> -{% endif %} +{%- if include.name %}{%assign name = include.name%}{% else %}{% assign name="default" %}{% endif -%} +{%- if include.label -%} +<svg aria-label="{{ include.label }}" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg> +{%- else -%} +<svg aria-hidden="true" class="icon-{{ name }} {{include.class}}"><use xlink:href="{{ "/assets/images/icons.svg" | relative_url }}#icon-{{ name }}"></use></svg> +{%- endif -%} \ No newline at end of file