This commit is contained in:
oiseauroch
2023-04-07 21:39:33 +02:00
parent fa0c6f3d64
commit 27c921dba3
37 changed files with 7730 additions and 90 deletions

View File

@@ -1,36 +1,18 @@
{% macro create_media(link, img, title, abstract, tags, date) %}
<article class="media"><!--
<figure class="media-left">
<p class="image is-128x128">
{% if img is not starting_with("/") %}
<img src={{ link }}{{ img }} alt="Placeholder image">
{% endif %}
{% if img isstarting_with("/") %}
<img src="{{ get_url(path=img, trailing_slash=false) }}" alt="Placeholder image">
{% endif %}
</p>-->
</figure>
<div class="media-content">
<a href="{{ link | safe }}">
<div class="content">
<p>
<strong class="title is-3">{{ title }}</strong>
<br>
{{ abstract | markdown | safe }}
</p>
</div>
</a>
<nav class="level is-mobile">
<div class="level-left">
{% for tag in tags %}
<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 %}
<a class="button is-small is-info is-light is-rounded" href="{{ get_url(path="tags/") }}/{{ tag }}"> {{ tag }}</a>
{% endfor %}
</div>
</nav>
</div>
{% endfor %}</a>
</div>
</article>
{% endmacro %}