illustration.html 710 B

123456789101112131415
  1. {% assign image = include.image | replace: '.svg', '' %}
  2. {% assign height = include.height | default: 128 %}
  3. {% assign src = "/free-illustrations/autodark/" | append: image %}
  4. {% assign illustration = free-illustrations.autodark[image] %}
  5. {% assign replace-to = '<svg class="img' %}
  6. {% if include.class %}{% assign replace-to = replace-to | append: ' ' | append: include.class %}{% endif %}
  7. {% assign replace-to = replace-to | append: '" ' %}
  8. {% assign illustration = illustration | replace: '<svg ', replace-to %}
  9. {% assign replace-to-height = 'height="' | append: height | append: '"' %}
  10. {% assign illustration = illustration | replace: 'width="800" height="600"', replace-to-height %}
  11. {{ illustration }}