forked from laysense/laysense.cn
Add canvas element tools and categorized article editing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user