blog/templates/macros/media.html

19 lines
708 B
HTML
Raw Normal View History

2023-03-31 21:59:07 +02:00
{% macro create_media(link, img, title, abstract, tags, date) %}
2023-04-07 21:39:33 +02:00
<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 %}
2023-03-31 21:59:07 +02:00
<a class="button is-small is-info is-light is-rounded" href="{{ get_url(path="tags/") }}/{{ tag }}"> {{ tag }}</a>
2023-04-07 21:39:33 +02:00
{% endfor %}</a>
</div>
2023-03-31 21:59:07 +02:00
</article>
{% endmacro %}