featured_pics now link to their original image file
This commit is contained in:
parent
949f4fda07
commit
bfdc1a9115
@ -1,5 +1,6 @@
|
|||||||
{# output a featured image for an article #}
|
{# output a featured image for an article #}
|
||||||
{% macro fi(pic, link='', alt='', title='', credit='', credit_link='') %}
|
{% macro fi(pic, link='', alt='', title='', credit='', credit_link='') %}
|
||||||
|
{% if not link %}{% set link = pic %}{% endif %}
|
||||||
<div class="featured-image">
|
<div class="featured-image">
|
||||||
<figure>
|
<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 %}
|
{% 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 #}
|
{# output a card image #}
|
||||||
{% macro ci(pic, link='', alt='', title='', credit='', credit_link='') %}
|
{% macro ci(pic, link='', alt='', title='', credit='', credit_link='') %}
|
||||||
|
{% if not link %}{% set link = pic %}{% endif %}
|
||||||
<div class="card-image">
|
<div class="card-image">
|
||||||
<figure>
|
<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 %}
|
{% 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 %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user