blog/templates/index.html

47 lines
1.8 KiB
HTML
Raw Normal View History

2023-03-31 21:59:07 +02:00
{% extends "base.html" %}
{% import 'macros/card.html' as macro_card -%}
{% import 'macros/media.html' as macro_media -%}
{% block content %}
2023-04-08 19:43:40 +02:00
<div class="columns is-multiline mt-6">
2023-03-31 21:59:07 +02:00
{% set blog = get_section(path="blog/_index.md") %}
{% for page in blog.pages %}
{% if loop.index0 == 3 %}{% break %}{% endif %}
2023-04-08 19:43:40 +02:00
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.Tag, date=page.date) }}
2023-03-31 21:59:07 +02:00
{% endfor %}
2023-04-08 19:43:40 +02:00
<a class="plus-articles button is-link is-light is-medium has-text-weight-bold" href="{{ blog.permalink }}">
Plus d'articles
2023-04-07 21:39:33 +02:00
<i class="computer fas fa-chevron-right"></i>
2023-04-08 19:43:40 +02:00
</a>
2023-04-07 21:39:33 +02:00
</div>
<section class="section">
<h1 class="title">Notes diverses</h1>
<h2 class="subtitle">
Des sujets qui ne méritent pas un article complet mais dont j'ai envie de parler.
</h2>
<div class="columns is-gapless" style="box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);">
{% set notes = get_section(path="notes/_index.md") %}
{% for page in notes.pages %}
<div class="column is-one-fifth ">
{% if loop.index0 == 5 %}{% break %}{% endif %}
2023-04-08 19:43:40 +02:00
{{ macro_media::create_media(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.Tag, date=page.date) }}
2023-04-07 21:39:33 +02:00
</div>
{% endfor %}
2023-04-08 19:43:40 +02:00
{% set notes = get_section(path="notes/_index.md") %}
<a class="overlay has-text-weight-bold" href="{{ notes.permalink }} ">
2023-04-07 21:39:33 +02:00
Plus
2023-04-08 19:43:40 +02:00
<i class="computer fas fa-chevron-right" style="padding: 0.25em;"></i>
2023-04-07 21:39:33 +02:00
</a>
2023-03-31 21:59:07 +02:00
</div>
2023-04-07 21:39:33 +02:00
</section>
2023-03-31 21:59:07 +02:00
{% endblock content %}