aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/img.html
diff options
context:
space:
mode:
authorJieiku2022-05-31 03:00:20 -0700
committerJieiku2022-05-31 03:00:20 -0700
commit31395878a127a6dd474da50c2f93956588aa2135 (patch)
tree0122eb9d2d085ceb87016e3c50912d70462f9f87 /templates/shortcodes/img.html
parent04631b1f651fd677baf837be318084b91cb9acf4 (diff)
downloadabridge-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.html4
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 %} />