From 42050f9c08be40180905467304fb87255dafd0b6 Mon Sep 17 00:00:00 2001 From: uint Date: Fri, 19 Dec 2025 20:32:59 +0000 Subject: add navigation symbols + self promo --- kew.go | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'kew.go') diff --git a/kew.go b/kew.go index fb42520..f7f5fa1 100644 --- a/kew.go +++ b/kew.go @@ -12,8 +12,11 @@ import ( /* TODO: config.h */ const SiteTitle = "mallocd.com" -const FooterText = "made with kew" +const FooterText = "made with kew" const TemplateFile = "template.html" +const NavDirSymbol = "/" +const NavFileSymbol = ": " +const NavCurrentSymbol = "@ " type NavNode struct { Name string @@ -66,7 +69,7 @@ func build_nav(dir string, root string) (NavNode, bool) { return node, true } -func render_nav(n NavNode, b *strings.Builder) { +func render_nav(n NavNode, b *strings.Builder, cur string) { b.WriteString("