voyage_velo/templates/macros/media.html
2023-07-20 19:45:55 +02:00

20 lines
764 B
HTML

{% macro create_media(link, img, title, abstract, tags, date) %}
<article class="media has-equal-height divide note p-4" >
<div class="media-content media-flex" style="overflow-y: clip;">
<a href="#" class="has-equal-height" style="width: 100%">
<h4 class="title is-4">{{ title }}</h4>
<div class="content has-text-justified">
{{ abstract | markdown | safe }}
</div>
</a>
<div class="buttons mt-1">
{% for tag in tags %}
{% set tag_permalink = get_taxonomy_url(kind="Tag", name=tag) %}
<a class="button is-small is-info is-light is-rounded mx-1" href="{{ tag_permalink }}"> {{ tag }}</a>
{% endfor %}
</div>
</article>
{% endmacro %}