forked from rDrama/rDrama
properly linkfy images
parent
c686c99fad
commit
dbbd6a9e12
|
@ -18,7 +18,9 @@
|
||||||
<td>
|
<td>
|
||||||
{% set url=item[0] %}
|
{% set url=item[0] %}
|
||||||
{% if url.endswith('.webp') %}
|
{% if url.endswith('.webp') %}
|
||||||
|
<a href="{{url}}">
|
||||||
<img alt="{{url}}" src="{{url}}" loading="lazy" class="dm_img" data-nonce="{{g.nonce}}" data-onclick="expandImage()">
|
<img alt="{{url}}" src="{{url}}" loading="lazy" class="dm_img" data-nonce="{{g.nonce}}" data-onclick="expandImage()">
|
||||||
|
</a>
|
||||||
{% elif url.endswith('.mp4') %}
|
{% elif url.endswith('.mp4') %}
|
||||||
<p class="resizable">
|
<p class="resizable">
|
||||||
<video controls preload="none" src="{{url}}"></video>
|
<video controls preload="none" src="{{url}}"></video>
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2 class="mt-4">{{title}}</h2>
|
<h2 class="mt-4">{{title}}</h2>
|
||||||
{% for url in urls %}
|
{% for url in urls %}
|
||||||
|
<a href="{{url}}">
|
||||||
<img class="mt-4 mr-3" style="max-width:80vw" src="{{url}}" loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()">
|
<img class="mt-4 mr-3" style="max-width:80vw" src="{{url}}" loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()">
|
||||||
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue