fix rel on link images
This commit is contained in:
parent
637ce359c2
commit
9382a154ec
1 changed files with 2 additions and 15 deletions
|
@ -1,18 +1,5 @@
|
|||
{% macro link_img(ref, img, alt, rel="") %}
|
||||
<a href="{{ ref }}" target="_blank"
|
||||
><img
|
||||
src="{{ img }}"
|
||||
alt="{{ alt }}"
|
||||
width="50"
|
||||
height="50"
|
||||
{%
|
||||
if
|
||||
rel
|
||||
%}
|
||||
rel="{{ rel }}"
|
||||
{%
|
||||
endif
|
||||
%}
|
||||
/></a>
|
||||
<a href="{{ ref }}" target="_blank" {% if rel %} rel="{{ rel }}" {% endif %}><img src="{{ img }}" alt="{{ alt }}"
|
||||
width="50" height="50" /></a>
|
||||
<br />
|
||||
{% endmacro link_img %}
|
||||
|
|
Loading…
Reference in a new issue