title = "Category" url = "/blog/category/:slug" layout = "default" is_hidden = 0 [blogPosts] pageNumber = "{{ :page }}" categoryFilter = "{{ :slug }}" postsPerPage = 10 noPostsMessage = "No posts found" sortOrder = "published_at desc" categoryPage = "blog/category" postPage = "blog/post" ==

dernières nouvelles

{% set posts = blogPosts.posts %}
    {% for post in posts %}
  • {{ post.title }}

    {% if post.categories.count %} {% set categoryLinks = post.categories | map(c => "#{c.name}") | join(', ') %} {{ 'winter.blog::lang.post.posted_byline' | trans({ date: post.published_at | date('winter.blog::lang.post.date_format' | trans), categories: categoryLinks }) }} {% else %} {{ 'winter.blog::lang.post.posted_byline_no_categories' | trans({ date: post.published_at | date('winter.blog::lang.post.date_format' | trans) }) }} {% endif %}

    {% if post.featured_images.count %} {% endif %}

    {{ post.summary | raw }}

  • {% else %}
  • {{ blogPosts.noPostsMessage }}
  • {% endfor %}
{% if posts.lastPage > 1 %}
    {% if posts.currentPage > 1 %} {% endif %} {% for page in 1..posts.lastPage %}
  • {{ page }}
  • {% endfor %} {% if posts.lastPage > posts.currentPage %} {% endif %}
{% endif %}
{% partial 'blog/sidebar' %}