{% extends 'base.html.twig' %}
{% block title %}{{ setting.siteName }} : catégorie {{ category.title }}{% endblock %}
{% block body %}
{# <h1>BlogCategory</h1>
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ blog_category.id }}</td>
</tr>
<tr>
<th>Title</th>
<td>{{ blog_category.title }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('app_blog_category_index') }}">back to list</a>
<a href="{{ path('app_blog_category_edit', {'id': blog_category.id}) }}">edit</a>
{{ include('blog_category/_delete_form.html.twig') }} #}
{# {{ dump(category) }} #}
<section class="container py-5">
<div class="row">
<div class="col">
{# Breadcrumbs #}
<div class="row">
<div class="col small">
<nav style="--bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E");"
aria-label="breadcrumb">
<ol class="breadcrumb small">
<li class="breadcrumb-item"><a href="{{ path('app_home') }}" class="text-decoration-none text-dark">Accueil</a></li>
<li class="breadcrumb-item"><a href="{{ path('app_blog_category_index') }}" class="text-decoration-none text-dark">Catégories</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ category.title }}</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<h1 class="text-center mb-4 color1 fw-700 text-uppercase" data-aos="fade-down" data-aos-duration="2000">Catégorie :
{{ category.title }}</h1>
<h5 class="text-center mb-4 color1 fw-700 text-uppercase">Liste des articles de cette catégorie</h5>
<div class="row row-cols-1 row-cols-md-4 g-4 mt-5">
{% for article in category.blogArticles %}
<div class="col blog-cards">
<div class="card h-100">
<img src="{{ asset('assets/img/articles/' ~ article.image ) }}" class="card-img-top img-fluid" style="max-height: 150px; width: 100%; object-fit: cover;" alt="{{ article.title }}">
<div class="card-body">
<h5 class="card-title">
<a href="{{ path('app_blog_article_show', {'slug': article.slug}) }}" class="text-decoration-none color1">
{{ article.title }}
</a>
</h5>
{# <p class="card-text">This is a wider card with supporting text below as a natural lead-in to
additional content. This content is a little bit longer.</p> #}
</div>
<div class="card-footer">
<a href="{{ path('app_blog_article_show', {'slug': article.slug}) }}" class="text-decoration-none">
<span class="button-difference text-uppercase">Lire la suite</span>
</a>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="row mt-5">
<div class="col text-center">
<a class="btn btn-sm btn-primary" href="{{ path('app_blog_article_index') }}">Retour à la page du Blog</a>
<a class="btn btn-sm btn-primary" href="{{ path('app_blog_category_index') }}">Retour à la page des Catégories</a>
</div>
</div>
</section>
{% endblock %}