base tabler
This commit is contained in:
parent
ac2cfa9fe1
commit
0f84beacf1
1432 changed files with 28760 additions and 1 deletions
16
liquid/includes/ui/illustration.html
Normal file
16
liquid/includes/ui/illustration.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{% removeemptylines %}
|
||||
{% assign image = include.image | replace: '.svg', '' %}
|
||||
{% assign height = include.height | default: 128 %}
|
||||
|
||||
{% assign illustration = free-illustrations.autodark[image] %}
|
||||
|
||||
{% assign replace-to = '<svg class="img' %}
|
||||
{% if include.class %}{% assign replace-to = replace-to | append: ' ' | append: include.class %}{% endif %}
|
||||
{% assign replace-to = replace-to | append: '" ' %}
|
||||
{% assign illustration = illustration | replace: '<svg ', replace-to %}
|
||||
|
||||
{% assign replace-to-height = 'height="' | append: height | append: '"' %}
|
||||
{% assign illustration = illustration | replace: 'width="800" height="600"', replace-to-height %}
|
||||
|
||||
{{ illustration }}
|
||||
{% endremoveemptylines %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue