2024-10-22 12:26:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use App\Blogs\Blogs;
|
|
|
|
?>
|
|
|
|
<main class="blog">
|
|
|
|
<section>
|
|
|
|
<nav aria-label="breadcrumb" class="breadcrumb">
|
|
|
|
<ul>
|
|
|
|
<li><a href="/posts">Posts</a></li>
|
|
|
|
<li><a href="/posts/<?= $this->page; ?>"><?= $this->page; ?></a></li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<?php foreach ($getPostList as $key => $post): ?>
|
|
|
|
<article class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
<h3><a href="/post/<?= $key; ?>"><?= $post['title']; ?></a></h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2024-12-05 16:03:11 +01:00
|
|
|
<?= Blogs::extractLead($post['file']); ?>
|
2024-10-22 12:26:08 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-footer">
|
|
|
|
<time datetime="2024-09-01"><?= $post['created_at']; ?></time>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
<ul class="pagination">
|
|
|
|
<?= $pagination; ?>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</section>
|
|
|
|
</main>
|