chore(paginator.php, tags.php): adjust spacing

This commit is contained in:
Cory Dransfeldt 2025-05-17 15:38:32 -07:00
parent 9460ba17a9
commit 9303ffab6b
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "6.0.5", "version": "6.0.6",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "6.0.5", "version": "6.0.6",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"html-minifier-terser": "7.2.0", "html-minifier-terser": "7.2.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "6.0.5", "version": "6.0.6",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -15,7 +15,6 @@ function renderPaginator(array $pagination, int $totalPages): void {
<?php else: ?> <?php else: ?>
<span><?= getTablerIcon('arrow-left') ?></span> <span><?= getTablerIcon('arrow-left') ?></span>
<?php endif; ?> <?php endif; ?>
<select-pagination data-base-index="1"> <select-pagination data-base-index="1">
<select class="client-side" aria-label="Page selection"> <select class="client-side" aria-label="Page selection">
<?php foreach ($pagination['pages'] as $i): ?> <?php foreach ($pagination['pages'] as $i): ?>
@ -28,7 +27,6 @@ function renderPaginator(array $pagination, int $totalPages): void {
<p><span aria-current="page"><?= $pagination['pageNumber'] ?></span> of <?= $totalPages ?></p> <p><span aria-current="page"><?= $pagination['pageNumber'] ?></span> of <?= $totalPages ?></p>
</noscript> </noscript>
</select-pagination> </select-pagination>
<?php if (!empty($pagination['href']['next'])): ?> <?php if (!empty($pagination['href']['next'])): ?>
<a href="<?= $pagination['href']['next'] ?>" aria-label="Next page"> <a href="<?= $pagination['href']['next'] ?>" aria-label="Next page">
<?= getTablerIcon('arrow-right') ?> <?= getTablerIcon('arrow-right') ?>

View file

@ -4,9 +4,11 @@ function renderTags(array $tags): void {
if (empty($tags)) return; if (empty($tags)) return;
echo '<div class="tags">'; echo '<div class="tags">';
foreach ($tags as $tag) { foreach ($tags as $tag) {
$slug = strtolower(trim($tag)); $slug = strtolower(trim($tag));
echo '<a href="/tags/' . htmlspecialchars($slug) . '">#' . htmlspecialchars($slug) . '</a>'; echo '<a href="/tags/' . htmlspecialchars($slug) . '">#' . htmlspecialchars($slug) . '</a>';
} }
echo '</div>'; echo '</div>';
} }