mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-23 02:31:33 +08:00
feat: add category page
This commit is contained in:
@ -7,18 +7,42 @@
|
||||
class='relative mx-auto flex w-full items-center justify-between sm:flex sm:items-center'
|
||||
aria-label='global'
|
||||
>
|
||||
<a class='flex-none text-xl font-semibold' href='/' aria-label='Brand'>resume</a>
|
||||
<a class='flex-none text-xl font-semibold' href='/' aria-label='Brand'>KazooTTT Blog</a>
|
||||
|
||||
<div class='flex flex-row items-center justify-center gap-x-5 sm:gap-x-7'>
|
||||
<a
|
||||
href='/blog'
|
||||
class='flex-none text-[1.05rem] font-medium hover:text-foreground/75'
|
||||
class={`
|
||||
flex-none text-[1.05rem] font-medium hover:text-foreground/75
|
||||
${Astro.url.pathname.startsWith('/blog') ? 'text-green-400' : ''}
|
||||
`}
|
||||
aria-label='Nav Menu Item'
|
||||
>Blog
|
||||
</a>
|
||||
<a
|
||||
href='/categories'
|
||||
class={`
|
||||
flex-none text-[1.05rem] font-medium hover:text-foreground/75
|
||||
${Astro.url.pathname.startsWith('/categories') ? 'text-green-400' : ''}
|
||||
`}
|
||||
aria-label='Nav Menu Item'
|
||||
>Categories
|
||||
</a>
|
||||
<a
|
||||
href='/tags'
|
||||
class={`
|
||||
flex-none text-[1.05rem] font-medium hover:text-foreground/75
|
||||
${Astro.url.pathname.startsWith('/tags') ? 'text-green-400' : ''}
|
||||
`}
|
||||
aria-label='Nav Menu Item'
|
||||
>Tags
|
||||
</a>
|
||||
<a
|
||||
href='/tools'
|
||||
class='flex-none text-[1.05rem] font-medium hover:text-foreground/75'
|
||||
class={`
|
||||
flex-none text-[1.05rem] font-medium hover:text-foreground/75
|
||||
${Astro.url.pathname.startsWith('/tools') ? 'text-green-400' : ''}
|
||||
`}
|
||||
aria-label='Nav Menu Item'
|
||||
>Tools
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user