Add canvas element tools and categorized article editing

This commit is contained in:
2026-11-21 22:24:58 +08:00
parent 6efcdefadf
commit a5b3408358
45 changed files with 1607 additions and 660 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
<?php
use App\Content\Repository;
use App\Content\View;
$e = View::escape(...);
@@ -13,7 +12,7 @@ $e = View::escape(...);
</div>
<nav class="filter-nav" aria-label="动态分类">
<a href="/articles" <?= !$category && !$tag ? 'aria-current="page"' : '' ?>>全部</a>
<?php foreach (Repository::CATEGORIES as $key => $label): ?>
<?php foreach ($categories as $key => $label): ?>
<a href="/articles/category/<?= $e($key) ?>" <?= $category === $key ? 'aria-current="page"' : '' ?>><?= $e($label) ?></a>
<?php endforeach ?>
</nav>