67 lines
2.4 KiB
HTML
67 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
{% import 'macros/card.html' as macro_card -%}
|
|
{% import 'macros/media.html' as macro_media -%}
|
|
|
|
{% block content %}
|
|
|
|
|
|
<div class="tile is-ancestor">
|
|
<div class="tile is-vertical is-8">
|
|
<div class="columns is-multiline mt-6">
|
|
{% set blog = get_section(path="blog/_index.md") %}
|
|
{% for page in blog.pages %}
|
|
{% if loop.index0 == 3 %}{% break %}{% endif %}
|
|
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
</div>
|
|
|
|
<nav class="pagination is-centered is-rounded" role="navigation" aria-label="pagination">
|
|
<ul class="pagination-list">
|
|
|
|
<ul class="pagination-list">
|
|
<li><a class="pagination-link" href="{{ paginator.first }}">1</a></li>
|
|
<li><span class="pagination-ellipsis">…</span></li>
|
|
{% if paginator.previous %}
|
|
<li><a class="pagination-link" href="{{ paginator.previous }}">{{ paginator.current_index - 1 }}</a></li>
|
|
{% endif %}
|
|
<li><a class="pagination-link is-current" aria-label="Page 46" >{{ paginator.current_index }}</a></li>
|
|
{% if paginator.next %}
|
|
<li><a class="pagination-link" href="{{ paginator.next }}">{{ paginator.current_index + 1 }}</a></li>
|
|
{% endif %}
|
|
<li><span class="pagination-ellipsis">…</span></li>
|
|
<li><a class="pagination-link" href="{{ paginator.last }}">{{ paginator.number_pagers }}</a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
<div class="tile mt-6 ml-3 columns">
|
|
<div class="column">
|
|
<div class="card">
|
|
<div class="card-image" >
|
|
<section class="hero is-info is-light">
|
|
<div class="hero-body">
|
|
<p class="title">
|
|
Tips et découvertes
|
|
</p>
|
|
<p class="subtitle">
|
|
Des trouvailles rapides
|
|
</p>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div class="card-content" >
|
|
{% set notes = get_section(path="notes/_index.md") %}
|
|
{% for page in notes.pages %}
|
|
{% if loop.index0 == 4 %}{% break %}{% endif %}
|
|
{{ macro_media::create_media(link=page.permalink, img=page.extra.image, title=page.title, abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div> </div>
|
|
</div>
|
|
|
|
|
|
{% endblock content %}
|