<section class="content-band single-band">
	<div class="container">
		<article class="neon-page">
			<?php Theme::plugins('pageBegin'); ?>

			<nav class="page-breadcrumb" aria-label="<?php echo htmlspecialchars($L->get('Breadcrumb'), ENT_QUOTES, 'UTF-8'); ?>">
				<a href="<?php echo Theme::siteUrl(); ?>"><?php echo htmlspecialchars($site->title(), ENT_QUOTES, 'UTF-8'); ?></a>
				<?php if (!$page->isStatic() && $page->categoryKey()) : ?>
					<span>/</span>
					<a href="<?php echo $page->categoryPermalink(); ?>"><?php echo htmlspecialchars($page->category(), ENT_QUOTES, 'UTF-8'); ?></a>
				<?php endif; ?>
			</nav>

			<header class="page-header">
				<div class="accent-strip" aria-hidden="true">
					<span></span><span></span><span></span><span></span><span></span>
				</div>
				<div class="post-meta">
					<?php if (!$page->isStatic() && !$url->notFound()) : ?>
						<span><i class="bi bi-calendar3" aria-hidden="true"></i><?php echo $page->date(); ?></span>
						<span><i class="bi bi-stopwatch" aria-hidden="true"></i><?php echo $page->readingTime(); ?></span>
						<?php if ($page->user('nickname')) : ?>
							<span><i class="bi bi-person" aria-hidden="true"></i><?php echo htmlspecialchars($page->user('nickname'), ENT_QUOTES, 'UTF-8'); ?></span>
						<?php endif; ?>
					<?php endif; ?>
				</div>
				<h1><?php echo htmlspecialchars($page->title(), ENT_QUOTES, 'UTF-8'); ?></h1>
				<?php if ($page->description()) : ?>
					<p><?php echo htmlspecialchars($page->description(), ENT_QUOTES, 'UTF-8'); ?></p>
				<?php endif; ?>
			</header>

			<?php if ($page->coverImage()) : ?>
				<figure class="page-cover">
					<img src="<?php echo $page->coverImage(); ?>" alt="<?php echo htmlspecialchars($page->title(), ENT_QUOTES, 'UTF-8'); ?>" loading="lazy">
				</figure>
			<?php endif; ?>

			<div class="page-content">
				<?php echo $page->content(); ?>
			</div>

			<?php $tagsList = $page->tags(true); ?>
			<?php if (!empty($tagsList) || $page->categoryKey()) : ?>
				<footer class="page-taxonomy">
					<?php if ($page->categoryKey()) : ?>
						<a href="<?php echo $page->categoryPermalink(); ?>"><i class="bi bi-folder2-open" aria-hidden="true"></i><?php echo htmlspecialchars($page->category(), ENT_QUOTES, 'UTF-8'); ?></a>
					<?php endif; ?>
					<?php foreach ($tagsList as $tagKey => $tagName) : ?>
						<a href="<?php echo DOMAIN_TAGS . $tagKey; ?>"><i class="bi bi-tag" aria-hidden="true"></i><?php echo htmlspecialchars($tagName, ENT_QUOTES, 'UTF-8'); ?></a>
					<?php endforeach; ?>
				</footer>
			<?php endif; ?>

			<?php if (!$page->isStatic()) : ?>
				<a class="back-home" href="<?php echo Theme::siteUrl(); ?>"><i class="bi bi-arrow-left" aria-hidden="true"></i><?php echo $L->get('Back to home'); ?></a>
			<?php endif; ?>

			<?php Theme::plugins('pageEnd'); ?>
		</article>
	</div>
</section>
