package main
import (
"net/http"
"strings"
)
func HomePage(w http.ResponseWriter, r *http.Request) {
cfg := LoadConfig()
var items strings.Builder
for _, n := range visibleNavItems(cfg.BetaToolsEnabled) {
if n.Path == "/" {
continue
}
badge := ""
if n.Beta {
badge = ` Beta`
}
items.WriteString(``)
}
body := `
Standalone build. Pick a tool to open.HPL Toolbox