<a class="imagegroup" href="{{site.baseurl}}/examples/{{ include.spec }}.html">
  <span class="image" alt="{{ include.title | strip }}" style="background-image: url({{site.baseurl}}/examples/compiled/{{ include.spec }}.svg);{% if include.style %}{{ include.style }}{% endif %}"></span>
  <span class="image-title">{{ include.title | strip }}</span>
</a>

<a class="imagegroup" href="{{ site.baseurl }}/examples/{{ include.spec }}.html">
  <span class="image" alt="{{ include.title | strip }}" style="background-image: url({{site.baseurl}}/examples/compiled/{{ include.spec }}.svg);{% if include.style %}{{ include.style }}{% endif %}"></span>
  <span class="image-title">{{ include.title | strip }}</span>
</a>

Add space between {{ }}
Add space between {{ }}