mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-05-10 02:26:45 -07:00
update to use new webdog partials feature
This commit is contained in:
parent
326301c04e
commit
3a43070731
2 changed files with 24 additions and 2 deletions
16
site/templates/blog/blog-image.tera
Normal file
16
site/templates/blog/blog-image.tera
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue