diff options
| author | Jieiku | 2022-05-31 03:00:20 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-31 03:00:20 -0700 |
| commit | 31395878a127a6dd474da50c2f93956588aa2135 (patch) | |
| tree | 0122eb9d2d085ceb87016e3c50912d70462f9f87 /templates/shortcodes/img.html | |
| parent | 04631b1f651fd677baf837be318084b91cb9acf4 (diff) | |
| download | abridge-31395878a127a6dd474da50c2f93956588aa2135.tar.gz abridge-31395878a127a6dd474da50c2f93956588aa2135.tar.bz2 abridge-31395878a127a6dd474da50c2f93956588aa2135.zip | |
HTML5 Validation & Cleanup
Diffstat (limited to 'templates/shortcodes/img.html')
| -rw-r--r-- | templates/shortcodes/img.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html index 46fb39d..4645569 100644 --- a/templates/shortcodes/img.html +++ b/templates/shortcodes/img.html @@ -1,5 +1,3 @@ -{# {{ img(src="ferris.svg" class="" alt="" w=600 h=400) }} #} - {%- set dirtest = src | trim_start_matches(pat="./") %} {%- if dirtest is containing("/") %} {%- set reldir = true %} @@ -20,4 +18,4 @@ {%- set img = src | split(pat="/") | last %} {%- set name = img | split(pat=".") | first %} -<img src="{{ path | safe }}{{ img | safe }}" {% if class %}class="{{class}}" {% endif %}{% if alt %}alt="{{alt}}" {% endif %}{% if w %}width="{{w}}" {% endif %}{% if h %}height="{{h}}" {% endif %}/> +<img src="{{ path | safe }}{{ img | safe }}"{% if class %} class="{{class}}"{% endif %}{% if alt %} alt="{{alt}}"{% endif %}{% if w %} width="{{w}}"{% endif %}{% if h %} height="{{h}}"{% endif %} /> |
