1
0
Fork 0

fix: Added MIME types to images

This commit is contained in:
Benedikt Bastin 2021-04-04 23:34:13 +02:00
parent a901fd5c53
commit 082a552fd3

View file

@ -176,8 +176,8 @@
{% for fig in figures %} {% for fig in figures %}
<figure> <figure>
<picture> <picture>
<source srcset="{{ fig['filename']}}.svg" alt="{{ fig['caption']}}" /> <source type="image/svg+xml" srcset="{{ fig['filename']}}.svg" alt="{{ fig['caption']}}" />
<img src="{{ fig['filename'] }}.png" alt="{{ fig['caption'] }}" /> <img type="image/png" src="{{ fig['filename'] }}.png" alt="{{ fig['caption'] }}" />
</picture> </picture>
<figcaption> <figcaption>
<a name="figure-{{ '{:03d}'.format(fig['index']) }}"><span class="ref">Abbildung {{ fig['index'] }}:</span></a> <a name="figure-{{ '{:03d}'.format(fig['index']) }}"><span class="ref">Abbildung {{ fig['index'] }}:</span></a>