update to use new webdog partials feature

This commit is contained in:
zyl 2025-01-14 23:04:23 -08:00
parent 326301c04e
commit 3a43070731
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
2 changed files with 24 additions and 2 deletions

View file

@ -0,0 +1,16 @@
{% if "class" in userdata %}
{% set class = userdata.class %}
{% else %}
{% set class = "" %}
{% endif %}
{% if "alt" in userdata %}
{% set alt = userdata.alt %}
{% else %}
{% set alt = "" %}
{% endif %}
<div class="image {{class}}">
<a href="{{userdata.src}}"><img src="{{userdata.src}}" alt="{{alt}}"></a>
<span>{{ page | safe }}</span>
</div>