Reflow home shortcuts and support article deletion

This commit is contained in:
2026-11-22 02:00:29 +08:00
parent 02e8685bc2
commit 4db9af6404
11 changed files with 110 additions and 16 deletions
+1
View File
@@ -12,6 +12,7 @@ $filters = $category ? 'category=' . rawurlencode($category) . '&' : '';
<a class="button button-primary" href="/admin/articles/new<?= $category ? '?category=' . $e($category) : '' ?>">新建文章</a>
</div>
</header>
<?php if ($deleted): ?><p class="feedback success" role="status">文章已删除。</p><?php endif ?>
<nav class="filter-nav" aria-label="筛选文章">
<a href="/admin/articles" <?= $category === null ? 'aria-current="page"' : '' ?>>全部</a>
<?php foreach ($categories as $key => $name): ?>