KT-personal-website/template/post.php
2024-10-22 12:26:08 +02:00

21 lines
No EOL
641 B
PHP

<main class="blog">
<section>
<nav aria-label="breadcrumb" class="breadcrumb">
<ul>
<li><a href="/posts">Posts</a></li>
<li><a href="/posts?year=<?= $postInfo['year']; ?>"><?= $postInfo['year']; ?></a></li>
<li><?= $postInfo['month']; ?></li>
<li><?= $postInfo['title']; ?></li>
</ul>
</nav>
</section>
<article>
<h2><?= $postInfo['title']; ?></h2>
<?= $postContent; ?>
<div class="article-footer">
<?= $author; ?> | <?= $postInfo['modified_at']; ?>
</div>
</article>
</main>