diff options
author | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-08-09 11:45:45 +0200 |
---|---|---|
committer | Simone Bortolin <simonebortolin@users.noreply.github.com> | 2022-12-19 23:01:05 +0100 |
commit | 81c799839bb0d2f07674d54db4bdb2769162f03a (patch) | |
tree | 2863fe474aee3c27e057631e1169842a4584f4ab /_includes | |
parent | Update ont-technicolor-afm0002.md (diff) | |
download | hack-gpon.github.io-81c799839bb0d2f07674d54db4bdb2769162f03a.tar hack-gpon.github.io-81c799839bb0d2f07674d54db4bdb2769162f03a.tar.gz hack-gpon.github.io-81c799839bb0d2f07674d54db4bdb2769162f03a.tar.bz2 hack-gpon.github.io-81c799839bb0d2f07674d54db4bdb2769162f03a.tar.lz hack-gpon.github.io-81c799839bb0d2f07674d54db4bdb2769162f03a.tar.xz hack-gpon.github.io-81c799839bb0d2f07674d54db4bdb2769162f03a.tar.zst hack-gpon.github.io-81c799839bb0d2f07674d54db4bdb2769162f03a.zip |
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/image.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/_includes/image.html b/_includes/image.html index 6389d3a..19149b3 100644 --- a/_includes/image.html +++ b/_includes/image.html @@ -1 +1,12 @@ -<figure>{% if {{include.url}} %}<a class="no_icon" target="_blank" rel="noopener" href="{{include.url}}">{% endif %}<img class="docimage" src="../assets/img/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}<figcaption>{{include.caption}}</figcaption>{% endif %}</figure> +<figure> + {% if {{include.url}} %} + <a class="no_icon" target="_blank" rel="noopener" href="{{include.url}}"> + {% endif %} + <source srcset='../assets/img/{{include.file | remove: ".jpg" | remove: ".png" | remove: ".jpeg" | remove: ".tiff" | remove: ".gif" }}.webp' type="image/webp"> + <img class="docimage" src="../assets/img/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} /> + {% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %} + <figcaption> + {{include.caption}} + </figcaption> + {% endif %} +</figure> |