init repo
This commit is contained in:
19
templates/macros/media.html
Normal file
19
templates/macros/media.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% 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 %}
|
||||
|
||||
Reference in New Issue
Block a user