<commit_before>{% extends "BabdelauraBlogBundle::layout.html.twig" %}


{% block mainContent %}

    <h1 class="grid-title">Les derniers articles</h1>
    <ul class="grid">
        {% for article in listeArticles %}
            {% set nbCommentaires = article.getNbCommentaires(true) %}
            <li class="grid-item">
                <figure class="grid-item-article">
                    <img class="grid-item-article-image" src="{{ asset(article.image.webPath) }}" alt="{{article.image.alt}}">
                    <figcaption class="grid-item-article-infos">
                        <h2 class="grid-item-article-title">
                            <a href="{{ path('babdelaurablog_article', {'slug': article.slug, 'annee': article.datePublication|date("Y"), 'mois': article.datePublication|date("m"), 'jour': article.datePublication|date("d")}) }}">{{article.titre|truncate(30,true)}}</a>
                        </h2>

                        <a class="grid-item-article-comments" href="{{ path('babdelaurablog_article', {'slug': article.slug, 'annee': article.datePublication|date("Y"), 'mois': article.datePublication|date("m"), 'jour': article.datePublication|date("d")}) }}#commentaires">
                        {{nbCommentaires}}
                        {% if nbCommentaires <= 1 %}
                          commentaire
                        {% else %}
                          commentaires
                        {% endif %}
                        </a>

                        <a class="grid-item-article-read button" href="{{ path('babdelaurablog_article', {'slug': article.slug, 'annee': article.datePublication|date("Y"), 'mois': article.datePublication|date("m"), 'jour': article.datePublication|date("d")}) }}">
                            Lire l'article
                        </a>
                    </figcaption>
                </figure>
            </li>
        {% endfor %}
    </ul>
    <a class="button button-full-width" href="{{ path('babdelaurablog_tousLesArticles') }}">Voir tous les articles</a>

{% endblock %}
<commit_msg>Ajout schema BlogPosting sur Blog/index.html.twig<commit_after>{% extends "BabdelauraBlogBundle::layout.html.twig" %}


{% block mainContent %}

    <h1 class="grid-title">Les derniers articles</h1>
    <ul class="grid">
        {% for article in listeArticles %}
            {% set nbCommentaires = article.getNbCommentaires(true) %}
            <li class="grid-item">
                <figure class="grid-item-article" itemscope itemtype="http://schema.org/BlogPosting">
                    <img class="grid-item-article-image" src="{{ asset(article.image.webPath) }}" alt="{{article.image.alt}}">
                    <figcaption class="grid-item-article-infos">
                        <h2 class="grid-item-article-title" itemprop="name">
                            <a href="{{ path('babdelaurablog_article', {'slug': article.slug, 'annee': article.datePublication|date("Y"), 'mois': article.datePublication|date("m"), 'jour': article.datePublication|date("d")}) }}">{{article.titre|truncate(30,true)}}</a>
                        </h2>

                        <a class="grid-item-article-comments" href="{{ path('babdelaurablog_article', {'slug': article.slug, 'annee': article.datePublication|date("Y"), 'mois': article.datePublication|date("m"), 'jour': article.datePublication|date("d")}) }}#commentaires">
                        {{nbCommentaires}}
                        {% if nbCommentaires <= 1 %}
                          commentaire
                        {% else %}
                          commentaires
                        {% endif %}
                        </a>

                        <a class="grid-item-article-read button" href="{{ path('babdelaurablog_article', {'slug': article.slug, 'annee': article.datePublication|date("Y"), 'mois': article.datePublication|date("m"), 'jour': article.datePublication|date("d")}) }}">
                            Lire l'article
                        </a>
                    </figcaption>
                </figure>
            </li>
        {% endfor %}
    </ul>
    <a class="button button-full-width" href="{{ path('babdelaurablog_tousLesArticles') }}">Voir tous les articles</a>

{% endblock %}

{'fraction_non_alphanumeric': 0.16576151121605667, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 2.0673425054308474, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '416555', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1161, 'n_words': 201}