featured_pics now link to their original image file

This commit is contained in:
eclipse 2025-03-14 20:56:13 +01:00
parent 949f4fda07
commit bfdc1a9115

View File

@ -1,5 +1,6 @@
{# output a featured image for an article #}
{% macro fi(pic, link='', alt='', title='', credit='', credit_link='') %}
{% if not link %}{% set link = pic %}{% endif %}
<div class="featured-image">
<figure>
{% if link %}<a href="{{ link }}"{% if title %} title="{{ title | escape }}"{% endif %}>{% endif %}<img class="image-process-featured" src="{{ pic }}"{% if alt %} alt="{{ alt | escape}}"{% endif %}/>{% if link %}</a>{% endif %}
@ -10,6 +11,7 @@
{# output a card image #}
{% macro ci(pic, link='', alt='', title='', credit='', credit_link='') %}
{% if not link %}{% set link = pic %}{% endif %}
<div class="card-image">
<figure>
{% if link %}<a href="{{ link }}"{% if title %} title="{{ title | escape }}"{% endif %}>{% endif %}<img class="image-process-card" src="{{ pic }}"{% if alt %} alt="{{ alt | escape }}"{% endif %}/>{% if link %}</a>{% endif %}