{% extends 'base.html.twig' %}
{% block title %}Blog - Fitness Tips & Health Advice | Fatness for Service{% endblock %}
{% block meta_description %}Discover fitness tips, health advice, and success stories to help you on your fitness journey.{% endblock %}
{% block body %}
<section class="bg-primary bg-gradient py-5">
<div class="container">
<div class="row align-items-center">
<div class="col-md-8 mx-auto text-center">
<h1 class="display-4 fw-bold text-white mb-3">
Fitness Tips & Health Advice
</h1>
<p class="fs-5 text-white-50 mb-0">
Discover expert advice, success stories, and motivation for your fitness journey
</p>
</div>
</div>
</div>
</section>
<section class="py-5">
<div class="container">
<div class="row g-4">
<div class="col-lg-8">
{% if posts|length > 0 %}
<div class="row row-cols-1 g-4 mb-4">
{% for post in posts %}
<div class="col">
{% include 'blog/_post_card.html.twig' with {'post': post} %}
</div>
{% endfor %}
</div>
{% include 'blog/_pagination.html.twig' with {
'currentPage': currentPage,
'totalPages': totalPages,
'route': 'app_blog_index',
'routeParams': {}
} %}
<div class="text-center text-secondary mt-3">
Showing {{ posts|length }} of {{ totalPosts }} posts
</div>
{% else %}
<div class="alert alert-info">
No blog posts found. Check back soon for new content!
</div>
{% endif %}
</div>
<div class="col-lg-4">
{% include 'blog/_sidebar.html.twig' with {'tags': tags} %}
</div>
</div>
</div>
</section>
{% endblock %}