Remove unneeded processing

This commit is contained in:
Lukas Bestle
2022-08-20 18:09:56 +02:00
parent b800bcb5be
commit 27acc17eac
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,6 @@
*/ */
return function ($page) { return function ($page) {
$tag = urldecode(param('tag') ?? '');
/** /**
* We use the collection helper to fetch the notes collection defined in `/site/collections/notes.php` * We use the collection helper to fetch the notes collection defined in `/site/collections/notes.php`
* *
@@ -20,6 +19,7 @@ return function ($page) {
*/ */
$notes = collection('notes'); $notes = collection('notes');
$tag = param('tag');
if (empty($tag) === false) { if (empty($tag) === false) {
$notes = $notes->filterBy('tags', $tag, ','); $notes = $notes->filterBy('tags', $tag, ',');
} }

View File

@@ -29,7 +29,7 @@
<div class="grid" style="--gutter: 1.5rem"> <div class="grid" style="--gutter: 1.5rem">
<section class="column text" style="--columns: 4"> <section class="column text" style="--columns: 4">
<h3>Address</h3> <h3>Address</h3>
<?= $page->address()->kt() ?> <?= $page->address() ?>
</section> </section>
<section class="column text" style="--columns: 4"> <section class="column text" style="--columns: 4">
<h3>Email</h3> <h3>Email</h3>