add hire/resume pages, contact form, security middleware, and admin improvements

This commit is contained in:
Blake Ridgway
2026-03-08 21:36:47 -05:00
parent c916186d78
commit 261745a5b7
22 changed files with 1237 additions and 72 deletions

View File

@@ -48,14 +48,22 @@ func main() {
mux.HandleFunc("GET /infrastructure", h.Infrastructure)
mux.HandleFunc("GET /status", h.Status)
mux.HandleFunc("GET /about", h.About)
mux.HandleFunc("GET /hire", h.Hire)
mux.HandleFunc("POST /hire", h.HirePost)
mux.HandleFunc("GET /resume", h.Resume)
mux.HandleFunc("GET /sitemap.xml", h.Sitemap)
// Admin routes (auth handled per-handler)
mux.HandleFunc("/admin", h.AdminDashboard)
mux.HandleFunc("/admin/", h.AdminRouter)
srv := handler.Chain(mux,
handler.LoggingMiddleware,
handler.SecurityHeadersMiddleware,
)
log.Printf("ridgwaysystems.org starting on :%s (DEV=%s)", port, os.Getenv("DEV"))
log.Fatal(http.ListenAndServe(":"+port, mux))
log.Fatal(http.ListenAndServe(":"+port, srv))
}
// generateSyntaxCSS writes a chroma CSS file with light and dark themes.