|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
import config from '@/config'
|
|
|
|
|
import Link from '@/components/Link.astro'
|
|
|
|
|
import 'katex/dist/katex.min.css'
|
|
|
|
|
@ -12,6 +13,10 @@ import '@/themes/modern.css'
|
|
|
|
|
// import '@/themes/colorful.css'
|
|
|
|
|
// import '@/themes/mono.css'
|
|
|
|
|
// import '@/themes/sober.css'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const posts = import.meta.glob<MarkdownInstance<PostFrontmatter>>('../pages/posts/*.md', { eager: true })
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<!doctype html>
|
|
|
|
|
@ -79,7 +84,10 @@ import '@/themes/modern.css'
|
|
|
|
|
<nav>
|
|
|
|
|
<div class="nav-item"><Link href="/">Home</Link></div>
|
|
|
|
|
<div class="nav-item"><Link href="/appunti">Appunti</Link></div>
|
|
|
|
|
{ (Object.values(posts) != undefined &&
|
|
|
|
|
Object.values(posts).length != 0) ? (
|
|
|
|
|
<div class="nav-item"><Link href="/posts">Post</Link></div>
|
|
|
|
|
) : ( <></> ) }
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|