{% extends 'base.html.twig' %}
{% use 'includes/blocks/articles.blocks.html.twig' %}
{% block title %}{{ category.title }}{% endblock %}
{% block head %}
<meta name="description" content="{{ meta_seo_description }}">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ category.title }}">
<meta name="twitter:description" content="{{ meta_seo_description }}">
<meta name="twitter:image" content="{{ asset('avatar.png', 'img') }}?v={{ cache_busting }}">
<meta name="twitter:url" content="{{ path('category', {category: category.slug}) }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ category.title }}">
<meta property="og:description" content="{{ meta_seo_description }}">
<meta property="og:image" content="{{ asset('avatar.png', 'img') }}?v={{ cache_busting }}">
<meta property="og:url" content="{{ path('category', {category: category.slug}) }}">
{% endblock %}
{% block content %}
{% if articles|length > 0 %}
<div class="bg-frLightBlue">
<section-title
class="mid-section-pb section-pt"
:data="{
type: 'main',
theme: 'light',
title: '{{ category.title }}',
image: '{{ asset('vue/icons/flash.svg', 'img') }}',
imageClass: 'w-15 lg:w-20'
}"
></section-title>
</div>
{% set items = articles %}
{% set fixRowLayout = 2 %}
{% set cardClass = 'pb-[15px] lg:pb-[24px]' %}
{{ block('newest_pattern_homepage') }}
{% endif %}
{% if otherArticles|length > 0 %}
{% set items = otherArticles %}
{% set articleAjaxUrl = url('latestArticleApi', { 'categorySlug': category.slug }) %}
{% set initialPage = 3 %}
{{ block('infinite_scroll_small_articles') }}
{% endif %}
{% endblock %}