mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-29 23:28:14 +01:00
Add: add only main tag in tab
This commit is contained in:
@@ -28,7 +28,7 @@ const tags: Array<{ label: string, icon: string } & Tag> = [
|
||||
color: 'black',
|
||||
},
|
||||
...TAGS,
|
||||
].sort((a, b) => a.label.localeCompare(b.label))
|
||||
].filter(tag => tag.label === 'All' ? true : tag.sort).sort((a, b) => a.label.localeCompare(b.label))
|
||||
|
||||
function updateTag(index: number) {
|
||||
const tag = tags[index]
|
||||
@@ -50,8 +50,7 @@ function updateTag(index: number) {
|
||||
icon="i-ph-warning-duotone"
|
||||
variant="outline"
|
||||
/>
|
||||
<UTabs :items="tags" class="hidden md:block" @change="updateTag" />
|
||||
<UTabs :items="tags" orientation="vertical" class="md:hidden" @change="updateTag" />
|
||||
<UTabs :items="tags" @change="updateTag" />
|
||||
<ul class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
||||
<NuxtLink
|
||||
v-for="(writing, id) in writings"
|
||||
|
||||
Reference in New Issue
Block a user