Refactoring sidebar and adding footer

This commit is contained in:
2025-11-13 22:12:26 +13:00
parent 2812939ed3
commit b4cf4e88bc
6 changed files with 67 additions and 14 deletions

View File

@@ -1,12 +1,35 @@
---
const links = [
{
txt: 'now',
lnk: '/now'
},
{
txt: 'posts',
lnk: '/posts'
},
{
txt: 'photos',
lnk: '/photos'
},
]
---
<div class="text-2xl">
<a href="/now">now</a>
{
links.map(l => (
<a href={l.lnk}>{l.txt}</a>
)).join(<span class="text-(--accent)">•</span>)
}
<!-- <a href="/now">now</a>
<span class="text-(--accent)">•</span>
<a href="/posts">posts</a>
<span class="text-(--accent)">•</span>
<a href="/photos">photos</a>
<a href="/photos">photos</a> -->
<!-- • <a href="/software">software</a> -->
</div>