feat: migration vers template academic-homepage original
Build and Deploy Jekyll / deploy (push) Successful in 42s

This commit is contained in:
2026-05-25 20:23:42 +02:00
parent 8500659207
commit b3c00734c2
78 changed files with 3458 additions and 188 deletions
+27 -14
View File
@@ -1,19 +1,32 @@
---
layout: default
title: Projets
url: /showcase
title : Showcase
navbar_title: Showcase
container_class: container-xl
---
<h1 style="font-size:1.5rem;font-weight:600;margin-bottom:2rem">Projets</h1>
<div class="showcase-grid">
{% for project in site.showcase %}
<a class="showcase-card" href="{{ project.url }}" {% if project.url contains 'http' %}target="_blank"{% endif %} style="display:block;text-decoration:none;color:inherit">
<div class="showcase-title">{{ project.title }}</div>
<div class="showcase-desc">{{ project.description }}</div>
<div class="showcase-tags">
{% for tag in project.tags %}
<span class="showcase-tag">{{ tag }}</span>
{% endfor %}
{% assign cards_by_group = site.showcase | sort: "date" | reverse | where: "show", true | group_by_exp: "item", "item.group" %}
{% for group in cards_by_group %}
<h1>{{ group.name }}</h1>
<div class="row grid mb-4">
<div class="grid-sizer col-1"></div>
{% for item in group.items %}
{% if item.width >= 6 -%}
{%- assign width_sm = 12 -%}
{%- assign width_xs = 12 -%}
{%- elsif item.width >= 2 -%}
{%- assign width_sm = 6 -%}
{%- assign width_xs = 6 -%}
{%- else -%}
{%- assign width_sm = item.width | times: 2 | at_most: 12 -%}
{%- assign width_xs = item.width | times: 2 | at_most: 12 -%}
{%- endif -%}
<div class="p-2 grid-item col-md-{{ item.width | at_most: 12 }} col-sm-{{ width_sm }} col-{{ width_xs }}">
<div class="{% if item.class != null %}{{ item.class }}{% else %}card border-0 shadow-sm bg-white{% endif %}">
{{ item.content }}
</div>
</div>
</a>
{% endfor %}
{% endfor %}
</div>
{% endfor %}