You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
![]()
2 years ago
|
{% macro list_posts(pages) %}
|
||
|
<div class="bloglist-container">
|
||
|
{% for page in pages %}
|
||
|
<section class="bloglist-table-row">
|
||
|
<div class="bloglist-title">
|
||
|
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
||
|
</div>
|
||
|
|
||
|
<div class="card-meta">
|
||
|
{% if page.date %}
|
||
|
{{ macros_format_date::format_date(date=page.date) }}
|
||
|
{% endif %}
|
||
|
|
||
|
<br/>
|
||
|
<span>{{ page.reading_time }} min read</span>
|
||
|
{% if page.draft %}
|
||
|
<span class="draft-label">DRAFT</span>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
<br/>
|
||
|
<div class="description">
|
||
|
{% if page.description %}
|
||
|
{{ page.description }}
|
||
|
{% elif page.summary %}
|
||
|
{{ page.summary | safe }}…
|
||
|
{% else %}
|
||
|
{% set hide_read_more = true %}
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
|
||
|
{% if not hide_read_more %}
|
||
|
<a class="readmore" href={{ page.permalink }}>Read more ⟶</a>
|
||
|
{% endif %}
|
||
|
</section>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% endmacro %}
|