chore(paginator.php, tags.php): adjust spacing
This commit is contained in:
parent
9460ba17a9
commit
9303ffab6b
4 changed files with 5 additions and 5 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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') ?>
|
||||||
|
|
|
@ -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>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue