illustration.html 692 B

12345678910111213141516
  1. {% removeemptylines %}
  2. {% assign image = include.image | replace: '.svg', '' %}
  3. {% assign height = include.height | default: 128 %}
  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 }}
  12. {% endremoveemptylines %}